/* Auth Pages Styles */
.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 90%;
    min-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
}

.sidebar-content {
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 40px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.auth-header p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Auth Form Styles */
.auth-form {
    width: 100%;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    z-index: 2;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Buttons */
.btn-auth {
    width: 100%;
    margin-bottom: 20px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: var(--text-light);
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    width: 100%;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-telegram:hover {
    border-color: #0088cc;
    color: #0088cc;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 5px 0;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Sidebar Styles */
.sidebar-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.sidebar-content > p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.feature-list,
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item,
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.feature-item i,
.benefit-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.benefit-item div {
    display: flex;
    flex-direction: column;
}

.benefit-item strong {
    font-size: 16px;
}

.benefit-item span {
    font-size: 14px;
    opacity: 0.8;
}

/* Testimonial */
.testimonial {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    opacity: 0.8;
    font-size: 14px;
}

/* Stats Preview */
.stats-preview {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
}

.stats-preview h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        width: 95%;
        min-height: auto;
    }
    
    .auth-sidebar {
        display: none;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-logo {
        font-size: 20px;
    }
    
    .auth-logo img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        background: white;
    }
    
    .auth-container {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        min-height: 100vh;
    }
    
    .auth-card {
        padding: 20px 15px;
    }
}