:root {
    --primary-color: #004d99;
    --secondary-color: #f7b731;
    --file-color: #1abc9c;
    --stroke: #2c3e50;
    --bg: #fff;
    --primary: #DAA520;
    --primary-light: #F0D68C;
    --primary-dark: #B8860B;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(9, 8, 8, 0.08);
    --transition: all 0.3s ease;
    --accent-color: #00aaff;
    --light-gray: #f5f7fa;
    --medium-gray: #e1e5eb;
    --dark-gray: #6c757d;
    --error-color: #dc3545;
    --success-color: #28a745;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
    --sidebar-active: #3b82f6;
    --content-bg: #ffffff;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --bg-color: #f4f7f6;
    --sidebar-link-color: #bdc3c7;
    --sidebar-hover-bg: #34495e;
    --header-border: #e0e0e0;
    --active-tab-bg: #1abc9c;
    --long-content-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.login_wrapper {
    display: flex;
    background: var(--bg);
    width: 100%;
    min-height: 100vh;
}

.left {
    flex: 1;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.left img {
    max-width: 180px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.sys_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 1px;
}

.sys_text {
    font-size: 16px;
    color: #b3b3cc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.left a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.left a:hover {
    background: #667eea;
    color: white;
}

.login-container {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.step {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #f0f0f0;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.step:last-child::after {
    display: none;
}

.step.active {
    background: var(--accent-hover);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.step.completed {
    background: #4CAF50;
    color: white;
}

.step.completed::after {
    background: #4CAF50;
}

.step svg {
    width: 28px;
    height: 28px;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    text-align: center;
}

.message.success {
    color: #155724;
}

.message.error {
    color: #721c24;
}

.message.info {
    color: #0c5460;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #333;
    font-size: 14px;
}

.form-group label svg {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-info {
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #004085;
}

.form-info p {
    margin-bottom: 8px;
}

.form-info p:last-child {
    margin-bottom: 0;
}

.login_title {
    text-align: center;
    font-size: 30px;
    color: var(--sidebar-hover-bg);
    font-weight: 600;
    text-transform: capitalize;
}

.login_description {
    text-align: center;
    margin: 20px 0 40px;
    font-size: 16px;
    color: var(--text-secondary);
}

.btn {
    padding: 16px 30px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.setup_btn {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    border: none;
    background-color: var(--bg);
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease-in;
    margin-top: 30px;
    border: 2px solid var(--accent-color);
    padding: 10px;
}

.setup_btn:hover {
    scale: 1.03;
    background-color: var(--sidebar-active);
    color: var(--light);
    border: none;
}

.login_btn {
    background: var(--accent-hover);
    color: white;
    margin-top: 10px;
}

.login_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login_btn:active {
    transform: translateY(0);
}

.login_btn svg {
    width: 20px;
    height: 20px;
}

.timer {
    text-align: center;
    font-size: 16px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: #004085;
}

.timer.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
    animation: pulse 1s infinite;
}

.timer.expired {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px;
}

.otp-input {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link a:hover {
    background: #667eea;
    color: white;
    transform: rotate(360deg);
}

.back-link svg {
    width: 24px;
    height: 24px;
}

.login_btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 50% !important;
    margin: 20px auto 0 auto !important;
}

.form-group:last-child {
    margin-bottom: 0;
}

.login_btns_row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 60%;
    margin: 0 auto;
}

.login_btns_row button {
    padding: 10px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-hover);
    color: var(--light);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 120px;
}

.login_btns_row a {
    color: var(--sidebar-hover-bg);
}

@media (max-width: 768px) {
    .login_btn {
        width: 70% !important;
    }
}

@media (max-width: 480px) {
    .login_btn {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .login_wrapper {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .left {
        padding: 40px 20px;
    }
    
    .login-container {
        padding: 40px 20px;
    }
    
    .otp-input {
        width: 50px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .otp-inputs {
        gap: 10px;
    }
    
    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 22px;
    }
    
    .step-indicator {
        gap: 30px;
    }
    
    .step {
        width: 50px;
        height: 50px;
    }
    
    .step::after {
        width: 30px;
        right: -30px;
    }
}