/* 24. register.html*/
.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .register-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Левая часть - информация */
.register-info {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.register-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.info-header {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.header-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.info-features {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.feature-content p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 8rem;
    opacity: 0.1;
    margin-top: 2rem;
}

/* Правая часть - форма */
.register-form-wrapper {
    padding: 2rem;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.75rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
}

.form-header p {
    color: #718096;
    margin: 0;
    font-size: 1rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-errors {
    margin-bottom: 1rem;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #e53e3e;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: #e53e3e;
}

.field-wrapper {
    position: relative;
}

.field-wrapper input,
.field-wrapper select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #4a5568;
    background: white;
    transition: all 0.3s ease;
}

.field-wrapper input:focus,
.field-wrapper select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group.has-error .field-wrapper input,
.form-group.has-error .field-wrapper select {
    border-color: #fc8181;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.form-help {
    color: #718096;
    font-size: 0.875rem;
}

.field-errors {
    margin-top: 0.25rem;
}

.error-text {
    color: #e53e3e;
    font-size: 0.875rem;
    background: #fff5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #fed7d7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-text i {
    font-size: 0.875rem;
}

/* Соглашение */
.form-agreement {
    margin-top: 0.5rem;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.agreement-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agreement-checkbox label {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    cursor: pointer;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Кнопка регистрации */
.form-actions {
    margin-top: 1rem;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Футер формы */
.form-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-link-text {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.login-link:hover {
    color: #5a67d8;
}

.login-link i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
        gap: 2rem;
    }
    
    .register-info,
    .register-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .info-header h1 {
        font-size: 2rem;
    }
    
    .info-illustration {
        font-size: 6rem;
    }
}