/* ===================================
   AUTHENTICATION PAGES STYLES
   =================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Login Page Layout */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: 0;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,.03) 10px, rgba(0,0,0,.03) 20px);
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 500px 1fr;
    max-width: 1400px;
    width: 95%;
    min-height: 700px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Left Panel - Branding */
.login-left {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.branding {
    margin-bottom: 60px;
}

.logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.logo i {
    font-size: 36px;
    color: #fff;
}

.branding h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Features List */
.features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 24px;
    color: #6fa8dc;
    margin-top: 4px;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Right Panel - Login Form */
.login-right {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.login-box {
    width: 100%;
    max-width: 600px;
}

.login-header {
    text-align: center;
    margin-bottom: 48px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.login-header p {
    font-size: 16px;
    color: #666;
}

/* Account Type Cards */
.account-types {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.account-type-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.account-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6fa8dc 0%, #4a90e2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.account-type-card:hover {
    border-color: #6fa8dc;
    box-shadow: 0 8px 24px rgba(111, 168, 220, 0.15);
    transform: translateY(-2px);
}

.account-type-card:hover::before {
    transform: scaleX(1);
}

.account-type-card.admin-card::before {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
}

.account-type-card.user-card::before {
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
}

/* Card Icon */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.account-type-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.admin-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.user-icon {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.card-icon i {
    font-size: 28px;
    color: #fff;
}

/* Card Content */
.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.card-content > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Permissions List */
.permissions {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.permissions li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.permissions i {
    font-size: 12px;
    color: #16a34a;
}

/* Login Buttons */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn span,
.login-btn i {
    position: relative;
    z-index: 1;
}

.admin-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
}

.admin-btn:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.user-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}

.user-btn:hover {
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
    transform: translateY(-2px);
}

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

/* Footer Info */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.demo-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}

.demo-notice i {
    font-size: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-container {
        grid-template-columns: 400px 1fr;
    }
    
    .login-left {
        padding: 40px 30px;
    }
    
    .login-right {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 60px 40px;
    }
}

@media (max-width: 640px) {
    .login-container {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .login-right {
        padding: 40px 20px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .account-type-card {
        padding: 24px;
    }
    
    .permissions {
        grid-template-columns: 1fr;
    }
}
