/* =========================================================
   Shared styles for Login & Register pages
   ========================================================= */

.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-popup {
    background: #ffffff !important;
    padding: 40px 35px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 86, 141, 0.08) !important;
    max-width: 480px !important;
    margin: 30px auto 70px auto !important;
    border: 1px solid #eef2f5 !important;
}

.login-title-wrapper {
    text-align: center;
    margin-bottom: 28px;
}

.login-title-wrapper h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0D1B2B;
    margin-bottom: 8px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.login-title-wrapper p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.login-popup .form-group {
    margin-bottom: 22px !important;
}

.login-popup .form-group label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-transform: none !important;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper .input-left-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0D1B2B;
    font-size: 15px;
    z-index: 10;
}

.input-icon-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 15px;
    z-index: 10;
    cursor: pointer;
    transition: color 0.2s;
}

.input-icon-wrapper .toggle-password:hover {
    color: #0D1B2B;
}

.login-popup .form-control {
    height: 50px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 10px 18px 10px 42px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background-color: #fff !important;
    width: 100% !important;
    color: #454545 !important;
}

.login-popup .form-control.password-input {
    padding-right: 42px !important;
}

.login-popup .form-control:focus {
    border-color: #0D1B2B !important;
    box-shadow: 0 0 0 1px rgba(13, 27, 43, 0.15) !important;
    outline: none !important;
}

.error-feedback {
    color: #dc3545;
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.alert-danger {
    background-color: #fdf2f2;
    border: 1px solid #f8b4b4;
    color: #9b1c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-danger ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

.auth-link {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f5;
    font-size: 14px;
    color: #666;
}

.auth-link a {
    text-decoration: none;
    color: #0D1B2B;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.auth-link a:hover {
    color: #B18228;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-popup {
        padding: 30px 20px !important;
        margin: 10px 0px 40px 0px !important;
    }

    .login-title-wrapper h3 {
        font-size: 22px;
    }
}