/* SmartInfra Login Interface Styles */

/* CSS Custom Properties */
:root {
    /* SmartInfra Brand Colors */
    --primary-navy: #1e2742;
    --primary-navy-light: #2a3654;
    --primary-navy-dark: #161f34;
    --accent-teal: #5eb0a9;
    --secondary-green: #27421e;
    --secondary-green-light: #344f2c;
    --text-primary: #1e2742;
    --text-secondary: #5f6368;
    --font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 50%, var(--accent-teal) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(30, 39, 66, 0.15);
    overflow: hidden;
    max-width: 850px;
    width: 100%;
    display: flex;
    min-height: 650px;
}

/* Left Panel - Branding */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(94, 176, 169, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.branding {
    text-align: center;
    color: white;
    max-width: 350px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    background: transparent;
    mix-blend-mode: lighten;
}

.logo-fallback {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    display: none;
}

.logo-fallback .smart {
    color: white;
}

.logo-fallback .infra {
    color: var(--accent-teal);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.feature-list {
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-teal);
    font-size: 1.2rem;
}

/* Right Panel - Forms */
.right-panel {
    flex: 1;
    background: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
}

.form-container {
    width: 100%;
    max-width: 380px;
}

.form-container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

/* Form Tabs */
.form-tabs {
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    white-space: nowrap;
    flex: 1;
}

.tab-button.active {
    color: var(--primary-navy);
    border-bottom-color: var(--accent-teal);
}

.tab-button:hover {
    color: var(--primary-navy);
}
    color: var(--primary-teal);
    box-shadow: var(--shadow-sm);
}

.tab-button:hover {
    color: var(--primary-navy);
}

.form-container {
    display: block;
}

.form-container h2 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(94, 176, 169, 0.2);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    background-color: #fafbfc;
    width: 100%;
    display: block;
}

.form-control:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(94, 176, 169, 0.25);
    outline: none;
    background-color: white;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    font-size: 1rem;
    color: white;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(30, 39, 66, 0.3);
    background: linear-gradient(135deg, var(--primary-navy-light) 0%, var(--accent-teal) 100%);
    color: white;
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}
    margin-right: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password,
.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

/* Messages/Alerts */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.message.success,
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
    border-left: 5px solid #28a745;
}

.message.error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
    border-left: 5px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    border-left: 5px solid #ffc107;
}

.message.info,
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
    border-left: 5px solid #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .left-panel {
        display: none;
    }
    
    .login-card {
        border-radius: 16px;
    }
    
    .right-panel {
        padding: 1.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn-primary-custom {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 1rem;
    }
    
    .tab-button {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
    font-size: 0.875rem;
    position: relative;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: var(--primary-teal);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-weight: 500;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    max-width: 400px;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

.message.success {
    background: var(--success-color);
    color: white;
}

.message.error {
    background: var(--error-color);
    color: white;
}

.message.info {
    background: var(--primary-teal);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .left-panel {
        padding: 2rem 1rem;
        min-height: 30vh;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        display: none;
    }
    
    .right-panel {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .input-group.half {
        margin-bottom: 1rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .submit-btn,
    .demo-btn,
    .register-link-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .message-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .left-panel {
        min-height: 20vh;
        padding: 1.5rem 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .right-panel {
        padding: 1rem;
    }
    
    .form-container {
        padding: 0.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.875rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .animated-bg,
    .floating-shapes {
        display: none;
    }
}
