
:root {
    --theme-color: #000000;
    --theme-color-light: #3f37c9;
    --theme-color-dark: #3f37c9;
    --theme-color-transparent: rgba(63, 55, 201, 0.1);
    --theme-color-very-light: rgba(63, 55, 201, 0.05);
    --theme-text: #333;
    --theme-border: #e1e1e1;
}
/* ===== Background: pure white ===== */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
   /* padding: 20px;*/
    padding-top: 1vh;            /* pushes it down from top */
    padding-bottom: 100px;
}


.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    margin: auto; /* centers horizontally as fallback */
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Compact header ===== */
.login-card-header {
    background: var(--theme-color);
    color: white;
    padding: 24px 20px 20px;
    text-align: center;
}

.brand-logo {
    background: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.brand-logo i {
    font-size: 22px;
    color: var(--theme-color);
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 0;
}

/* ===== Compact body ===== */
.login-card-body {
    padding: 24px 24px 20px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    font-weight: 600;
    font-size: 13px;
    color: var(--theme-text);
    margin-bottom: 6px;
    display: flex;          /* was display: block */
    align-items: center;
    gap: 8px;               /* space between icon and text */
}

.login-form label .input-icon {
    font-size: 0.9em;
    width: 16px;
    text-align: center;
}

/* ===== ADD this block ===== */
.password-input-wrapper {
    position: relative;
}


.password-input-wrapper .form-control {
    padding-right: 40px;    /* make room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.password-toggle:hover {
    color: #000;
}

.login-form .form-control {
    height: 42px;            /* was 50px */
    border-radius: 8px;
    border: 2px solid var(--theme-border);
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* ===== Compact button ===== */
.btn-login {
    background-color: #000000;
    border-color: var(--theme-color);
    font-weight: 600;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(63, 55, 201, 0.25);
}

/* ===== Compact footer ===== */
.login-card-footer {
    padding: 14px 20px;
    background-color: #fafafa;
    text-align: center;
    border-top: 1px solid #eee;
}

.login-card-footer p {
    margin-bottom: 0;
    color: var(--theme-text);
    font-size: 13px;
}
/* Register card slightly taller */
.register-card {
    max-width: 400px;
}

/* Compact error alert */
.compact-alert {
    font-size: 0.82rem;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.compact-alert ul {
    padding-left: 16px;
    margin: 0;
}

.compact-alert li {
    margin-bottom: 2px;
}

.compact-alert li:last-child {
    margin-bottom: 0;
}
.login-alert {
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 12px 16px;
  }

/* ===== Mobile tweak ===== */
@media (max-width: 768px) {
    .login-card-header {
        padding: 20px 16px 16px;
    }
    
    .login-card-body {
        padding: 20px 16px 16px;
    }
    
    .brand-logo {
        width: 44px;
        height: 44px;
    }
    
    .brand-logo i {
        font-size: 18px;
    }
    
    .login-title {
        font-size: 20px;
    }
}