@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Login — AdminLTE-inspired professional dark theme
   Palette matches admin dark-overrides.css:
     page bg      #454d55
     card bg      #343a40
     card header  #37404a
     border       #4b545c
     input bg     #454d55
     input border #6c757d
     text strong  #ffffff
     text body    #c2c7d0
     text muted   #adb5bd
     placeholder  #8a939a
     accent       #007bff
     accent hover #0069d9
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #454d55;
    color: #c2c7d0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== PAGE CONTAINER ========== */
.login-page-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(0, 123, 255, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(0, 123, 255, 0.05) 0%, transparent 55%),
        #454d55;
}

/* ========== CARD ========== */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #343a40;
    border: 1px solid #4b545c;
    border-radius: 6px;
    padding: 44px 40px 32px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.2);
    animation: cardIn 0.4s ease-out both;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #007bff;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== BRAND MARK ========== */
.brand-mark {
    text-align: center;
    margin-bottom: 24px;
}

.brand-demo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 8px;
    padding-left: 8px; /* optical balance for wide letter-spacing */
    display: inline-block;
    position: relative;
}

.brand-demo::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin: 12px auto 0;
    background: #007bff;
    border-radius: 2px;
}

/* ========== HEADER ========== */
.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-header p {
    font-size: 0.85rem;
    color: #adb5bd;
    font-weight: 400;
}

/* ========== FORM ========== */
.aesthetic-form .form-group {
    margin-bottom: 18px;
}

.aesthetic-form .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #c2c7d0;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.aesthetic-form .form-input,
.aesthetic-form .form-input.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    background: #454d55;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
    height: auto;
    box-shadow: none;
}

.aesthetic-form .form-input::placeholder,
.aesthetic-form .form-input.form-control::placeholder {
    color: #8a939a;
    font-weight: 400;
}

.aesthetic-form .form-input:focus,
.aesthetic-form .form-input.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: #454d55;
}

.aesthetic-form .form-input:hover:not(:focus),
.aesthetic-form .form-input.form-control:hover:not(:focus) {
    border-color: #adb5bd;
}

/* Password row */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.forgot-link {
    font-size: 0.78rem;
    color: #4dabf7;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: #74c0fc;
    text-decoration: underline;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8a939a;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.password-toggle .toggle-eye:hover {
    color: #ffffff;
}

/* ========== SUBMIT BUTTON ========== */
.btn-login {
    width: 100%;
    padding: 11px;
    background: #007bff;
    color: #ffffff;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn-login:hover {
    background: #0069d9;
    border-color: #0062cc;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-login:active {
    background: #0062cc;
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.4);
}

.btn-login .btn-text {
    position: relative;
    z-index: 1;
}

/* ========== ALERTS ========== */
.login-alerts {
    margin-bottom: 16px;
}

.login-alerts:empty {
    margin-bottom: 0;
}

.login-alerts .alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    margin-bottom: 10px;
}

.login-alerts .alert i {
    margin-right: 6px;
}

.login-alerts .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #f5a5a5;
    border-color: rgba(220, 53, 69, 0.4);
}

.login-alerts .alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #a3d9ac;
    border-color: rgba(40, 167, 69, 0.4);
}

/* ========== FOOTER ========== */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #4b545c;
}

.login-footer p {
    font-size: 0.78rem;
    color: #8a939a;
    letter-spacing: 0.2px;
}

/* ========== VALIDATION ========== */
.fv-plugins-message-container {
    margin-top: 6px;
}

.fv-plugins-message-container .fv-help-block {
    font-size: 0.78rem;
    color: #f5a5a5;
    font-weight: 400;
}

.has-success .form-input {
    border-color: #28a745;
}

.has-danger .form-input {
    border-color: #dc3545;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 4px;
    }

    .brand-demo {
        font-size: 1.7rem;
        letter-spacing: 6px;
        padding-left: 6px;
    }

    .form-header h1 {
        font-size: 1.2rem;
    }
}
