/* login.css - Clean Dark/Light Login */

/* Override main-content wrapper for auth pages */
.main-content.auth-page {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    min-height: 100vh;
}

/* ===== PAGE WRAPPER - Always centered ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 50px 20px;
    background: #0f172a;
    transition: background 0.3s ease;
    position: relative;
}

/* ===== CARD ===== */
.login-card {
    width: 100%;
    max-width: 380px;
    background: #1e293b;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ===== LOGO ===== */
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: #2563eb;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px 0;
}

.login-version {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-logo p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* ===== FORM ===== */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}

.login-form label i {
    margin-right: 6px;
    color: #3b82f6;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid #334155;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #0f172a;
    color: #f1f5f9;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-form input::placeholder {
    color: #475569;
}

.login-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-form input:focus + i,
.login-input-wrapper:focus-within i {
    color: #3b82f6;
}

/* ===== BUTTON ===== */
.btn-login-submit {
    width: 100%;
    padding: 13px;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-login-submit:active {
    transform: translateY(0);
}

/* ===== FORGOT PASSWORD ===== */
.login-forgot {
    text-align: center;
    margin-top: 20px;
}

.login-forgot a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.login-forgot a:hover {
    color: #3b82f6;
}

.login-forgot i {
    margin-right: 4px;
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.login-footer {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: #475569;
    font-size: 0.75rem;
}

/* ===== THEME TOGGLE ===== */
.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.login-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

/* ===== ALERT ===== */
.login-alert {
    padding: 12px;
    border-radius: 10px;
    margin-top: 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    font-size: 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: center;
}

/* ===== LIGHT MODE ===== */
.light-mode .login-wrapper,
body.light-mode .login-wrapper {
    background: #f1f5f9;
}

.light-mode .login-card,
body.light-mode .login-card {
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.light-mode .login-logo h1,
body.light-mode .login-logo h1 {
    color: #0f172a;
}

.light-mode .login-logo p,
body.light-mode .login-logo p {
    color: #64748b;
}

.light-mode .login-form label,
body.light-mode .login-form label {
    color: #475569;
}

.light-mode .login-form input[type="text"],
.light-mode .login-form input[type="password"],
body.light-mode .login-form input[type="text"],
body.light-mode .login-form input[type="password"] {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

.light-mode .login-form input::placeholder,
body.light-mode .login-form input::placeholder {
    color: #94a3b8;
}

.light-mode .login-form input:focus,
body.light-mode .login-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.light-mode .login-input-wrapper i,
body.light-mode .login-input-wrapper i {
    color: #94a3b8;
}

.light-mode .login-forgot a,
body.light-mode .login-forgot a {
    color: #64748b;
}

.light-mode .login-forgot a:hover,
body.light-mode .login-forgot a:hover {
    color: #2563eb;
}

.light-mode .login-footer,
body.light-mode .login-footer {
    color: #94a3b8;
}

.light-mode .login-theme-toggle,
body.light-mode .login-theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.light-mode .login-theme-toggle:hover,
body.light-mode .login-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}
