/* ===== LOGIN PAGE LAYOUT ===== */
.login-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4ff 100%);
    min-height: 100vh;
}

.login-main {
    padding-top: 100px;
    padding-bottom: var(--space-3xl);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* ===== LEFT COLUMN: INFO ===== */
.login-info {
    position: sticky;
    top: 100px;
}

.login-header {
    margin-bottom: var(--space-2xl);
}

.login-header h1 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.login-header h1 i {
    color: var(--primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.info-card h2 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text);
    margin-bottom: var(--space-xl);
}

.info-card h2 i {
    color: var(--primary);
}

.instructions {
    list-style: none;
    counter-reset: step-counter;
}

.instructions li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.instructions li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
}

.instructions strong {
    display: block;
    color: var(--text);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.instructions span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* ===== SECURITY INFO ===== */
.security-info {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-light);
}

.security-info h3 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text);
    margin-bottom: var(--space-lg);
}

.security-info h3 i {
    color: var(--success);
}

.security-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    background: var(--background);
    border-radius: var(--radius-md);
    gap: var(--space-sm);
}

.feature i {
    font-size: var(--text-xl);
    color: var(--primary);
}

.feature span {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== BUSINESS INFO ===== */
.business-info {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border-left: 4px solid var(--primary);
}

.business-info p {
    color: var(--text);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.business-info .btn {
    width: 100%;
}

/* ===== RIGHT COLUMN: QR SCANNER ===== */
.qr-scanner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Scanner Card */
.scanner-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.scanner-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text);
    margin: 0;
}

.scanner-header h2 i {
    color: var(--primary);
}

.session-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: var(--radius-full);
}

.status-dot.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* QR Display */
.qr-display {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.qr-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

#qrcode {
    width: 280px !important;
    height: 280px !important;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.qr-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-width: 4px;
}

.qr-corner.tl {
    top: 0;
    left: 0;
    border-top-left-radius: 12px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.qr-corner.tr {
    top: 0;
    right: 0;
    border-top-right-radius: 12px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.qr-corner.bl {
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 12px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.qr-corner.br {
    bottom: 0;
    right: 0;
    border-bottom-right-radius: 12px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.qr-instructions {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.qr-instructions i {
    color: var(--primary);
    margin-right: var(--space-sm);
}

/* Session Info */
.session-info {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
}

.value {
    color: var(--text);
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: var(--text-sm);
}

.timer {
    color: var(--primary);
    font-weight: 700;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: var(--text-lg);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-light);
}

/* Scanner Controls */
.scanner-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Status Card */
.status-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
}

.status-header {
    margin-bottom: var(--space-xl);
}

.status-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text);
    margin: 0;
}

.status-header h3 i {
    color: var(--primary);
}

/* Timeline */
.status-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.timeline-step {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--background);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.timeline-step.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: var(--text-lg);
    color: var(--primary);
    border: 2px solid var(--border);
}

.timeline-step.active .step-icon {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.step-content h4 {
    font-size: var(--text-sm);
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin: 0;
}

/* Current Status */
.current-status {
    padding: var(--space-md);
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.status-message {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.status-message i {
    font-size: var(--text-xl);
    color: var(--primary);
}

.status-message strong {
    display: block;
    color: var(--text);
    font-size: var(--text-sm);
    margin-bottom: 2px;
}

.status-message small {
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

/* User Data Card */
.user-data-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid var(--success);
    box-shadow: var(--shadow-lg);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.user-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--success);
    margin: 0;
}

.user-header h3 i.success {
    color: var(--success);
}

.timestamp {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-item .label {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item .value {
    color: var(--text);
    font-size: var(--text-lg);
    font-weight: 600;
}

.info-item .value.success {
    color: var(--success);
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-lg);
}

.verification-badge i {
    font-size: var(--text-2xl);
}

.verification-badge strong {
    display: block;
    font-size: var(--text-lg);
    margin-bottom: 2px;
}

.verification-badge small {
    opacity: 0.9;
    font-size: var(--text-sm);
}

/* ===== FOOTER ===== */
.login-footer {
    background: var(--text);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.footer-disclaimer i {
    color: var(--primary-light);
    margin-top: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a i {
    width: 20px;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-info {
        position: static;
    }
    
    .security-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .scanner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .scanner-controls {
        grid-template-columns: 1fr;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
    
    .status-timeline {
        grid-template-columns: 1fr;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
}

@media (max-width: 640px) {
    .login-main {
        padding-top: 80px;
    }
    
    #qrcode {
        width: 240px !important;
        height: 240px !important;
    }
    
    .qr-corner {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
}