/* Reset ve Temel Stiller */
*{
   margin:0;
   padding: 0;
   box-sizing: border-box;
   user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f8fafc;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Arkaplan Animasyonu */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

/* Ana Container */
.form-container {
    width: 100%;
    max-width: 480px;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Kutusu */
.form-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.form-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent 30%
    );
    animation: rotate 6s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Logo Bölümü */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logo-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

/* Sosyal Giriş Butonları */
.social-login {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: white;
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.google-btn:active {
    transform: translateY(0);
}

.google-btn svg {
    margin-right: 12px;
    flex-shrink: 0;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.google-btn:hover::before {
    left: 100%;
}

/* Ayraç */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider span {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Grupları */
.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Input Stilleri */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Cinsiyet Seçici */
.gender-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.gender-selector i {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    font-size: 16px;
}

.gender-selector select {
    width: 100%;
    padding-left: 50px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.gender-selector select option {
    background: #2d3748;
    color: white;
    padding: 10px;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Montserrat', sans-serif;
}

/* Dosya Yükleme */
.file-upload {
    margin: 15px 0;
}

.file-upload label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.file-upload input[type="file"] {
    width: 100%;
    color: white;
    padding: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload input[type="file"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.file-upload small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
}

/* Şifre Güç Göstergesi */
.password-strength {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.strength-weak {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.strength-medium {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.strength-strong {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Gönder Butonu */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Şartlar ve Koşullar */
.terms {
    margin: 20px 0;
    text-align: center;
}

.terms p {
    line-height: 1.5;
}

.terms a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.terms a:hover {
    text-decoration: underline;
}

/* Bildirim Alanı */
.notification {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.5s ease;
    border: 1px solid;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.notification.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.notification.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notification.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kayıt Linki */
.register-link {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.register-link p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.register-link a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.register-link a:hover {
    text-decoration: underline;
}

.register-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

.register-link a:hover::after {
    width: 100%;
}

/* Floating Elements */
.form-box::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    animation: float 6s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }
    
    .form-box {
        padding: 30px 25px;
    }
    
    .logo-section h2 {
        font-size: 2rem;
    }
    
    .logo-section p {
        font-size: 13px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .google-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .form-box {
        padding: 25px 20px;
    }
    
    .logo-section h2 {
        font-size: 1.75rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .divider {
        margin: 25px 0;
    }
    
    .divider span {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .terms p {
        font-size: 11px;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .form-box {
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group textarea,
    .form-group select {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        background: rgba(30, 41, 59, 0.9);
    }
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Input Autofill Stili */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover, 
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset;
    transition: background-color 5000s ease-in-out 0s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* File Input Custom Styling */
.file-upload input[type="file"]::-webkit-file-upload-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-upload input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Bu stilleri CSS dosyanıza ekleyin */
.terms {
    position: relative;
    z-index: 10; /* Yüksek z-index değeri */
}

.terms a {
    position: relative;
    z-index: 11;
    pointer-events: auto !important;
}

/* Form kutusundaki overlay'i düzeltin */
.form-box::before {
    z-index: 1; /* Arka plan animasyonu */
}

.form-box > *:not(.floating-circle):not(::before):not(::after) {
    position: relative;
    z-index: 2; /* Tüm içerik önde olacak */
}

/* Loading State */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Görsel Olarak Gizli Elementler */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Outline Improvements */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible,
.google-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .form-box {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .social-login,
    .google-btn,
    .submit-btn {
        display: none;
    }
}
