/* ========================================
   MODERN LOGIN PAGE 2025 - GOLD THEME
   ======================================== */

/* Override base template styles using specific class names */
body.login-page {
    background-color: #1e1e1e !important;
    color: white !important;
    min-height: 100vh !important;
}

/* Override main element with login-specific class */
main.login-main {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1rem !important;
    margin-left: 0 !important; /* Override panel base.css margin */
    margin-right: 0 !important;
}

/* Simple centered container */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Compact Login Card */
.login_wrp {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

/* Decorative Background Elements */
.login_wrp::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, transparent 100%);
    opacity: 0.04;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* Panel Styling */
.panel {
    border: none;
    background: transparent;
}

.panel-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.panel-body {
    position: relative;
    z-index: 1;
}

/* Animated Top Border */
.login_wrp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Compact Icon Container */
.login_wrp .panel-heading > div:first-child {
    margin-bottom: 1.25rem;
}

.login-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.login-icon i {
    font-size: 1.5rem;
    color: white;
}

.logout-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.logout-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Compact Headers */
.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.logout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.3px;
}

.logout-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Logout specific styles */
.logout-message {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #075985;
    border: 2px solid #7dd3fc;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.logout-btn i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Inactive page specific styles */
.inactive-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.inactive-icon i {
    font-size: 1.5rem;
    color: white;
}

.inactive-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.3px;
}

.inactive-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.inactive-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Compact Form Inputs */
.login_wrp form input[type="text"],
.login_wrp form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.login_wrp form input[type="text"]:focus,
.login_wrp form input[type="password"]:focus {
    border-color: #f59e0b;
    background: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}

.login_wrp form input::placeholder {
    color: #94a3b8;
}

/* Compact Login Button */
.login_wrp .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.login_wrp .btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.login_wrp .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.login_wrp .btn i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Compact Alert Styling */
.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.alert-danger::before {
    content: '⚠️';
    font-size: 1rem;
}

/* White Text Override */
.white_text {
    color: #fff !important;
}

/* Link Styling */
td a {
    text-decoration: none;
    color: #f59e0b;
    font-weight: 500;
    transition: color 0.2s ease;
}

td a:hover {
    color: #d97706;
}

/* Hide footer on login page */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.footer-text a {
    color: #f59e0b;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 991.98px) {
    .login-container {
        max-width: 360px;
    }

    .login_wrp {
        padding: 1.875rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    main {
        padding: 1.5rem 1rem !important;
    }

    .login-container {
        max-width: 100%;
    }

    .login_wrp {
        padding: 1.75rem 1.5rem;
        border-radius: 18px;
    }

    .login_wrp form input[type="text"],
    .login_wrp form input[type="password"] {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .login_wrp .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .login_wrp .panel-heading h1 {
        font-size: 1.375rem !important;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .login_wrp {
        padding: 1.5rem 1.25rem;
    }

    .login_wrp form input[type="text"],
    .login_wrp form input[type="password"] {
        margin-bottom: 0.875rem;
    }
}
