/**
 * Öğretmen Kayıt Sayfası - Modern Premium Tasarım
 * Responsive, Dark Mode Desteği, Accessibility
 */

:root {
    --tr-bg: #F8FAFC;
    --tr-card: #FFFFFF;
    --tr-text: #0F172A;
    --tr-muted: #64748B;
    --tr-border: #E2E8F0;
    --tr-primary: #2563EB;
    --tr-primary-hover: #1D4ED8;
    --tr-success: #22C55E;
    --tr-danger: #EF4444;
    --tr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --tr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --tr-radius: 14px;
    --tr-radius-sm: 10px;
}

[data-theme="dark"] {
    --tr-bg: #0F172A;
    --tr-card: #1E293B;
    --tr-text: #F1F5F9;
    --tr-muted: #94A3B8;
    --tr-border: #334155;
    --tr-primary: #3B82F6;
    --tr-primary-hover: #2563EB;
    --tr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --tr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --tr-bg: #0F172A;
        --tr-card: #1E293B;
        --tr-text: #F1F5F9;
        --tr-muted: #94A3B8;
        --tr-border: #334155;
        --tr-primary: #3B82F6;
        --tr-primary-hover: #2563EB;
        --tr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
        --tr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    }
}

/* Page Container */
.teacher-register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--tr-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
}

/* Card Container */
.teacher-register-card {
    width: 100%;
    max-width: 1200px;
    background: var(--tr-card);
    border-radius: var(--tr-radius);
    box-shadow: var(--tr-shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
}

/* Brand Panel (Desktop) */
.brand-panel {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%);
    color: #0C4A6E;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .brand-panel {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 50%, #2563EB 100%);
    color: #E0F2FE;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-panel {
        background: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 50%, #2563EB 100%);
        color: #E0F2FE;
    }
}

.brand-panel-content {
    padding: 48px 40px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-panel-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.decoration-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.1) 35px,
            rgba(255, 255, 255, 0.1) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.05) 35px,
            rgba(255, 255, 255, 0.05) 70px
        );
    opacity: 0.4;
    animation: patternMove 20s linear infinite;
}

[data-theme="dark"] .decoration-pattern {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.08) 35px,
            rgba(255, 255, 255, 0.08) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.04) 35px,
            rgba(255, 255, 255, 0.04) 70px
        );
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(70px, 70px); }
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: float 15s infinite ease-in-out;
}

[data-theme="dark"] .decoration-circle {
    background: rgba(255, 255, 255, 0.1);
}

.decoration-circle--1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.decoration-circle--2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: -30px;
    animation-delay: 5s;
}

.decoration-circle--3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

.brand-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .brand-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.brand-subtitle {
    font-size: 1.125rem;
    margin: 0 0 32px 0;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .brand-feature-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.brand-feature-text {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
}

/* Form Panel */
.form-panel {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tr-text);
    margin: 0 0 8px 0;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--tr-muted);
    margin: 0;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--tr-radius-sm);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tr-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert--success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--tr-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    background: var(--tr-card);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    color: var(--tr-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: var(--tr-shadow);
    margin-bottom: 8px;
}

.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google:focus-visible {
    outline: 2px solid var(--tr-primary);
    outline-offset: 2px;
}

.btn-google svg {
    flex-shrink: 0;
}

.google-hint {
    text-align: center;
    color: var(--tr-muted);
    font-size: 0.8125rem;
    margin: 0 0 24px 0;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tr-border);
}

.form-divider-text {
    padding: 0 16px;
    color: var(--tr-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--tr-text);
    display: block;
}

.required-asterisk {
    color: var(--tr-danger);
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    padding-right: 48px;
    background: var(--tr-card);
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius-sm);
    color: var(--tr-text);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

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

.form-input:focus-visible {
    outline: 2px solid var(--tr-primary);
    outline-offset: 2px;
}

.form-input::placeholder {
    color: var(--tr-muted);
    opacity: 0.6;
}

.form-input--error {
    border-color: var(--tr-danger);
}

.form-input--error:focus {
    border-color: var(--tr-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input-wrapper .form-input {
    padding-right: 48px;
}

.form-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tr-muted);
    transition: color 0.2s ease;
    border-radius: 4px;
}

.form-input-toggle:hover {
    color: var(--tr-text);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .form-input-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-input-toggle:focus-visible {
    outline: 2px solid var(--tr-primary);
    outline-offset: 2px;
}

.toggle-icon {
    font-size: 1.125rem;
    display: none;
}

.toggle-icon--show {
    display: block;
}

.form-input-wrapper[data-visible="true"] .toggle-icon--show {
    display: none;
}

.form-input-wrapper[data-visible="true"] .toggle-icon--hide {
    display: block;
}

.form-help {
    display: block;
    font-size: 0.8125rem;
    color: var(--tr-muted);
    margin-top: 4px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 44px;
    padding: 0 24px;
    background: var(--tr-primary);
    color: white;
    border: none;
    border-radius: var(--tr-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--tr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:focus-visible {
    outline: 2px solid var(--tr-primary);
    outline-offset: 2px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--tr-muted);
    margin: 12px 0 0 0;
    line-height: 1.5;
}

/* Footer Links */
.form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--tr-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-footer-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--tr-muted);
    margin: 0;
}

.form-footer-link a {
    color: var(--tr-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer-link a:hover {
    color: var(--tr-primary-hover);
    text-decoration: underline;
}

.form-footer-link a:focus-visible {
    outline: 2px solid var(--tr-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .teacher-register-page {
        padding: 16px;
        min-height: auto;
    }

    .teacher-register-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        min-height: auto;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        padding: 32px 24px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.875rem;
    }

    .form-footer {
        margin-top: 24px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 24px 16px;
    }

    .form-title {
        font-size: 1.375rem;
    }

    .register-form {
        gap: 16px;
    }
}

/* Print Styles */
@media print {
    .teacher-register-page {
        background: white;
    }

    .brand-panel {
        display: none;
    }

    .btn-google,
    .form-input-toggle {
        display: none;
    }
}

