@font-face {
    font-family: 'Vazir';
    src: url('../assets/fonts/Vazir.woff2') format('woff2'),
         url('../assets/fonts/Vazir.woff') format('woff'),
         url('../assets/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0f0f0f;
    --primary: #63dda8;
    --primary-dark: #2d9d78;
    --glass-bg: rgba(30, 30, 30, 0.95);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
}

.notification {
    background: linear-gradient(135deg, rgba(99, 221, 168, 0.95) 0%, rgba(45, 157, 120, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideDown 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.notification-message {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.notification-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification.hide {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1a4d3a 0%, #2d9d78 50%, #63dda8 100%);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(100px);
}

.logo-container {
    margin-bottom: 60px;
}

.logo-img {
    max-width: 200px;
    height: auto;
}

.panel-content h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 30px;
    font-weight: 900;
}

.panel-content p {
    font-size: 15px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.right-panel {
    flex: 1;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.mobile-logo {
    display: none;
    max-width: 120px;
    margin-bottom: 20px;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 10px;
}

.logo-shabof-part {
    color: var(--primary);
}

.subtitle {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 50px 16px 20px;
    color: var(--text-main);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.input-field::placeholder {
    color: #666;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 221, 168, 0.3);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.rules-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
}

.btn-main {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 221, 168, 0.3);
}

.btn-main:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-loading .btn-text {
    display: none;
}

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

.btn-loading .spinner {
    display: block;
}

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

.code-sent-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.code-sent-text strong {
    color: var(--text-main);
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

.message-box {
    min-height: 20px;
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    display: none;
}

.message-box.show {
    display: block;
}

.message-box.error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.message-box.success {
    background: rgba(99, 221, 168, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 221, 168, 0.2);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px; 
}

.back-link:hover {
    color: var(--primary);
}

.btn-logout-all {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout-all:hover {
    background: #e84050;
}

.code-title {
    text-align: center;
    font-size: 20px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 30px;
}

.code-sent-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.8;
}

.mobile-number {
    color: var(--primary);
    font-weight: 700;
    margin: 0 5px;
}

.edit-icon {
    cursor: pointer;
    margin-right: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.edit-icon:hover {
    opacity: 1;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    direction: ltr;
}

.code-box {
    width: 50px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.code-box:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transform: scale(1.05);
}

.timer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 30px;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@media (max-width: 1024px) {
    .left-panel {
        padding: 40px 50px;
    }
    
    .panel-content h2 {
        font-size: 32px;
    }
    
    .panel-content p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .notification-container {
        width: 95%;
        top: 10px;
    }
    
    .notification {
        padding: 16px 18px;
    }
    
    .notification-icon {
        font-size: 24px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 12px;
    }

    .login-wrapper {
        flex-direction: column;
    }
    
    .left-panel {
        display: none;
    }
    
    .right-panel {
        padding: 20px;
    }
    
    .mobile-logo {
        display: block;
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .code-box {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
    
    .code-inputs {
        gap: 8px;
    }
}
