﻿/* ============================================================
   LOGIN PAGE
   ============================================================ */

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: #f5f6f8;
    font-family: Arial, Helvetica, sans-serif;
}


/* ============================================================
   PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.login-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
}


/* ============================================================
   BRAND
   ============================================================ */

.login-brand {
    text-align: center;
    margin-bottom: 22px;
}


.brand-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #151515;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
}


.brand-name {
    font-size: 26px;
    font-weight: 700;
    color: #222;
}


.brand-subtitle {
    margin-top: 5px;
    color: #888;
    font-size: 13px;
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.login-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}


.login-title {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}


.login-description {
    margin-top: 6px;
    margin-bottom: 25px;
    color: #888;
    font-size: 13px;
    text-align: center;
}


/* ============================================================
   FIELD
   ============================================================ */

.login-field {
    margin-bottom: 18px;
}


    .login-field label {
        display: block;
        margin-bottom: 7px;
        color: #333;
        font-size: 14px;
        font-weight: 600;
    }


.login-input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 16px;
    outline: none;
}


    .login-input:focus {
        border-color: #555;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
    }


/* ============================================================
   PASSWORD
   ============================================================ */

.password-wrapper {
    position: relative;
}


.password-input {
    padding-right: 65px;
}


.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}


/* ============================================================
   REMEMBER
   ============================================================ */

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}


    .remember-option input {
        width: 16px;
        height: 16px;
        margin: 0;
        cursor: pointer;
    }


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: #151515;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}


    .login-button:hover {
        background: #333;
    }


    .login-button:active {
        transform: translateY(1px);
    }


/* ============================================================
   ERRORS
   ============================================================ */

.login-error {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 7px;
    background: #fff0f0;
    color: #c33;
    font-size: 13px;
}


.field-error {
    display: block;
    margin-top: 5px;
    color: #c33;
    font-size: 12px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.login-footer {
    margin-top: 20px;
    color: #999;
    font-size: 11px;
    text-align: center;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .login-page {
        padding: 15px;
    }


    .login-card {
        padding: 22px 18px;
        border-radius: 12px;
    }


    .brand-name {
        font-size: 23px;
    }


    .login-title {
        font-size: 20px;
    }


    .login-input {
        height: 50px;
        font-size: 16px;
    }


    .login-button {
        height: 52px;
    }
}
