/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #222;
}


/* ================= HEADER ================= */

.site-header {
    width: 100%;
    height: 70px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    border-bottom: 1px solid #e5e5e5;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: #111;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.menu-btn {
    border: none;
    background: transparent;

    font-size: 25px;

    cursor: pointer;

    color: #222;
}


/* ================= LOGIN CONTAINER ================= */

.register-container {
    min-height: calc(100vh - 70px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
}


/* ================= LOGIN CARD ================= */

.register-card {
    width: 100%;
    max-width: 450px;

    background: #ffffff;

    padding: 35px;

    border-radius: 14px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


/* ================= HEADING ================= */

.register-card h2 {
    text-align: center;

    font-size: 27px;

    margin-bottom: 10px;

    color: #111;
}

.register-card > p {
    text-align: center;

    color: #777;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* ================= FLASH MESSAGE ================= */

.flash-message {
    padding: 12px 15px;

    border-radius: 7px;

    margin-bottom: 18px;

    font-size: 14px;
}

.flash-message.success {
    background: #e8f7ee;
    color: #187a3d;
}

.flash-message.error,
.flash-message.danger {
    background: #fdeaea;
    color: #b42318;
}

.flash-message.warning {
    background: #fff4d6;
    color: #8a5a00;
}

.flash-message.info {
    background: #e8f1ff;
    color: #175cd3;
}


/* ================= FORM ================= */

#loginForm {
    width: 100%;
}

#loginForm label {
    display: block;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 7px;

    color: #333;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d8d8d8;

    border-radius: 8px;

    background: #ffffff;

    color: #222;

    font-size: 14px;

    outline: none;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;

    margin-bottom: 18px;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
    border-color: #111;

    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

#loginForm input::placeholder {
    color: #999;
}


/* ================= PASSWORD FIELD ================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
}

.password-wrapper span {
    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    cursor: pointer;

    color: #666;

    font-size: 16px;

    z-index: 2;
}

.password-wrapper span:hover {
    color: #111;
}


/* ================= LOGIN OPTIONS ================= */

.login-options {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 2px 0 20px;

    font-size: 14px;
}

.login-options a {
    color: #007bff;

    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex !important;

    align-items: center;

    gap: 6px;

    cursor: pointer;

    margin: 0 !important;

    font-weight: normal !important;
}

.remember-me input {
    width: 15px;

    height: 15px;

    margin: 0;
}


/* ================= CAPS LOCK ================= */

.caps-warning {
    color: #dc3545;

    font-size: 13px;

    margin-top: -10px;

    margin-bottom: 12px;

    text-align: left !important;
}


/* ================= LOGIN BUTTON ================= */

.register-btn {
    width: 100%;

    height: 50px;

    border: none;

    border-radius: 8px;

    background: #111;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.register-btn:hover {
    background: #333;
}

.register-btn:active {
    transform: scale(0.98);
}

#loginBtn:disabled {
    opacity: 0.8;

    cursor: not-allowed;
}


/* ================= DIVIDER ================= */

.divider {
    display: flex;

    align-items: center;

    margin: 25px 0;
}

.divider span {
    flex: 1;

    height: 1px;

    background: #ddd;
}

.divider p {
    margin: 0 15px;

    color: #888;

    font-size: 14px;

    font-weight: 600;
}


/* ================= GOOGLE BUTTON ================= */

.google-btn {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    width: 100%;

    height: 50px;

    border: 1px solid #ddd;

    border-radius: 8px;

    text-decoration: none;

    color: #333;

    background: #fff;

    font-weight: 600;

    font-size: 15px;

    transition: 0.2s ease;

    box-sizing: border-box;
}

.google-btn:hover {
    background: #f5f5f5;

    border-color: #bbb;
}

.google-btn i {
    color: #db4437;

    font-size: 18px;
}


/* ================= REGISTER LINK ================= */

.register-card .login-link {
    text-align: center;

    margin-top: 25px;

    margin-bottom: 0;

    color: #777;

    font-size: 14px;
}

.login-link a {
    color: #007bff;

    text-decoration: none;

    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .site-header {
        height: 62px;

        padding: 0 18px;
    }

    .logo {
        font-size: 22px;
    }

    .menu-btn {
        font-size: 22px;
    }

    .register-container {
        min-height: calc(100vh - 62px);

        padding: 25px 15px;

        align-items: flex-start;
    }

    .register-card {
        margin-top: 15px;

        padding: 28px 20px;

        border-radius: 12px;
    }

    .register-card h2 {
        font-size: 23px;
    }

    .login-options {
        font-size: 13px;
    }

    .google-btn,
    .register-btn {
        height: 48px;
    }
}