/* ======================================================================= */
/* BÖLÜM 1: TEMEL DEĞİŞKENLER VE KURULUM
/* ======================================================================= */
:root {
    --card-bg: #FFFFFF; 
    --card-border: #EAEAEA;
    --text-dark: #3D3D3D; 
    --text-medium: #888888;
    --accent-copper: #C4A484; 
    --accent-copper-dark: #B08F71;
    --accent-copper-light: #DDC5AF; 
    --accent-success: #7E8C82; 
    --accent-error: #D32F2F;
    --paper-texture-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    --font-elegant: 'EB Garamond', serif;
}

body, html {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

body {
    background: linear-gradient(135deg, #F5F5DC 0%, #FAF0E6 50%, #FFF5EE 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ======================================================================= */
/* BÖLÜM 2: ARKA PLAN ANİMASYONU
/* ======================================================================= */
.background-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.canvas-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(245, 245, 220, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(250, 240, 230, 0.3) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}
.floating-shapes { position: absolute; width: 100%; height: 100%; }
.shape {
    position: absolute; background: rgba(255, 250, 240, 0.15);
    border: 1px solid rgba(245, 222, 179, 0.25); border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}
.shape:nth-child(1) { width: 120px; height: 120px; top: 20%; left: 10%; animation-duration: 25s; }
.shape:nth-child(2) { width: 80px; height: 80px; top: 60%; left: 80%; animation-delay: 5s; }
.shape:nth-child(3) { width: 150px; height: 150px; top: 70%; left: 20%; animation-delay: 10s; animation-duration: 30s; }
.shape:nth-child(4) { width: 100px; height: 100px; top: 30%; left: 70%; animation-delay: 15s; animation-duration: 22s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-40px) rotate(90deg); }
    50% { transform: translateY(20px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}
@keyframes gradientShift {
    0%, 100% { opacity: 0.7; } 50% { opacity: 0.9; }
}

/* ======================================================================= */
/* BÖLÜM 3: KAYIT KARTI
/* ======================================================================= */
.signup-container {
    width: 100%; max-width: 600px; background-color: var(--card-bg);
    background-image: var(--paper-texture-svg); border-radius: 12px;
    padding: 2rem 3rem; box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--card-border); animation: fadeIn 1s ease-out;
}

.signup-header { text-align: center; margin-bottom: 2rem; }
.brand-logo { 
    font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 600;
    letter-spacing: 2px; color: var(--text-dark); position: relative;
    display: inline-block; padding-bottom: 10px;
}
.brand-logo::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,-2 50,5 T100,5' fill='none' stroke='%23C4A484' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; background-position: center;
}
.subtitle { font-size: 1.2rem; color: var(--text-medium); margin-top: 0.75rem; }

/* ======================================================================= */
/* BÖLÜM 4: FORM ELEMENTLERİ
/* ======================================================================= */
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    color: var(--text-dark); font-size: 1rem; font-weight: 500; 
    font-family: var(--font-elegant); margin-bottom: 0.5rem; display: block;
}

.input-anim-container { position: relative; }
.input-anim-container input, .password-input {
    width: 100%; border: 1px solid var(--card-border);
    background-color: #fcfcfc; transition: all 0.3s ease;
    border-radius: 8px; font-size: 1rem;
    font-family: var(--font-elegant);
}
.input-anim-container input { padding: 0.8rem; }

/* GÜNCELLEME: Tarayıcının varsayılan şifre ikonunu gizle */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-reveal,
input[type="password"]::-webkit-password-suffix-button { 
    -webkit-appearance: none; appearance: none; display: none; 
}

.password-input { display: flex; align-items: center; }
.password-input input { border: none; flex-grow: 1; padding-right: 0; }
.input-anim-container input:focus, .password-input:has(input:focus) {
    outline: none; border-color: transparent !important;
}

.input-anim-container span {
    position: absolute; background-color: var(--accent-copper-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease; pointer-events: none;
}
.input-anim-container input:focus ~ span, .password-input:has(input:focus) ~ span { box-shadow: 0 0 8px var(--accent-copper-light); }
.input-anim-container .bottom, .input-anim-container .top { height: 2px; left: 0; right: 0; transform: scaleX(0); }
.input-anim-container .left, .input-anim-container .right { width: 2px; top: 0; bottom: 0; transform: scaleY(0); }
.input-anim-container .bottom { bottom: 0; transform-origin: bottom right; }
.input-anim-container input:focus ~ .bottom, .password-input:has(input:focus) ~ .bottom { transform-origin: bottom left; transform: scaleX(1); }
.input-anim-container .right { right: 0; transform-origin: top right; }
.input-anim-container input:focus ~ .right, .password-input:has(input:focus) ~ .right { transform-origin: bottom right; transform: scaleY(1); }
.input-anim-container .top { top: 0; transform-origin: top left; }
.input-anim-container input:focus ~ .top, .password-input:has(input:focus) ~ .top { transform-origin: top right; transform: scaleX(1); }
.input-anim-container .left { left: 0; transform-origin: bottom left; }
.input-anim-container input:focus ~ .left, .password-input:has(input:focus) ~ .left { transform-origin: top left; transform: scaleY(1); }

.toggle-password {
    background: none; border: none; color: var(--text-medium);
    cursor: pointer; padding: 0 0.75rem; font-size: 1rem;
}

/* Doğum Tarihi */
.birthdate-group { display: flex; gap: 10px; }
.custom-select-wrapper { position: relative; flex: 1; }
.custom-select-wrapper select { display: none; } 

.select-trigger {
    width: 100%; border: 1px solid var(--card-border); background-color: #fcfcfc;
    transition: all 0.3s ease; border-radius: 8px;
    /* GÜNCELLEME: Font stili eklendi */
    font-family: var(--font-elegant); font-size: 1rem; 
    padding: 0.8rem; cursor: pointer; display: flex; 
    justify-content: space-between; align-items: center; user-select: none;
}
.select-trigger::after {
    content: ''; border: solid var(--text-medium); border-width: 0 2px 2px 0;
    display: inline-block; padding: 3px; transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.custom-select-wrapper.open .select-trigger::after { transform: rotate(-135deg); }

.custom-options {
    position: absolute; top: 110%; left: 0; right: 0; background: var(--card-bg);
    border: 1px solid var(--card-border); border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); z-index: 10;
    max-height: 200px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.custom-select-wrapper.open .custom-options { opacity: 1; visibility: visible; transform: translateY(0); }

.custom-option {
    padding: 0.8rem; cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    /* GÜNCELLEME: Font stili eklendi */
    font-family: var(--font-elegant); font-size: 1rem;
}
.custom-option:hover { background-color: #f5f5f5; }
.custom-option.selected { background-color: var(--accent-copper-light); color: var(--text-dark); font-weight: 600; }

/* Şifre Gücü ve Hata Mesajları */
.password-strength { height: 4px; background-color: #eee; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.strength-meter { height: 100%; width: 0; transition: width 0.3s, background-color 0.3s; }
.strength-text { font-size: 0.8rem; margin-top: 4px; text-align: right; height: 1em; }
.error-message { font-size: 0.8rem; color: var(--accent-error); margin-top: 4px; }

/* Checkbox Alanları */
.options-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.9rem; }
.options-row.single-option { margin-bottom: 0.75rem; }
.remember-me { display: flex; align-items: center; gap: 0.5rem; }
.remember-me input { width: 15px; height: 15px; accent-color: var(--accent-copper); }
.remember-me label { margin-bottom: 0; font-family: 'Cormorant Garamond', serif; }
.remember-me a { color: var(--text-dark); text-decoration: none; font-weight: 600; }
.remember-me a:hover { color: var(--accent-copper-dark); text-decoration: underline; }

/* ======================================================================= */
/* BÖLÜM 5: BUTON VE LİNKLER
/* ======================================================================= */
.shimmer-btn {
    --cut: 0.1em; --active: 0; --transition: 0.25s;
    background: linear-gradient(175deg, #4a4a4a, #303030);
    font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600;
    border: 0; cursor: pointer; display: flex; justify-content: center; align-items: center;
    white-space: nowrap; border-radius: 50px; position: relative; overflow: hidden;
    box-shadow: 0 0.05em 0 0 hsl(0, 0%, 50%) inset, 0 -0.05em 0 0 hsl(0, 0%, 0%) inset;
    transition: box-shadow var(--transition), scale var(--transition), background var(--transition);
    scale: calc(1 + (var(--active) * 0.05)); width: 100%; height: 50px; margin-top: 1.5rem;
}
.shimmer-btn:active { scale: 1; }
.shimmer-btn:is(:hover, :focus-visible) { --active: 1; }
.shimmer-btn .spark { position: absolute; inset: 0; border-radius: 50px; rotate: 0deg; overflow: hidden;
    mask: linear-gradient(white, transparent 50%); animation: flip 3.6s infinite steps(2, end);
}
@keyframes flip { to { rotate: 360deg; } }
.shimmer-btn .spark:before {
    content: ""; position: absolute; width: 200%; aspect-ratio: 1;
    inset: 0 auto auto 50%; z-index: 0; translate: -50% -15%;
    transform: rotate(-90deg); opacity: calc((var(--active) * 0.3) + 0.7);
    filter: blur(3px);
    background: conic-gradient(from 0deg, transparent 0 290deg, var(--accent-copper-light) 360deg);
    transition: opacity var(--transition); animation: rotate 1.8s linear infinite both;
}
@keyframes rotate { to { transform: rotate(90deg); } }
.shimmer-btn .backdrop { position: absolute; inset: var(--cut); background: linear-gradient(175deg, #4a4a4a, #303030);
    border-radius: 50px; transition: background var(--transition) opacity var(--transition); z-index: 1;
}
.shimmer-btn .text { color: white; letter-spacing: 1px; position: relative; z-index: 2; }
.signup-link { text-align: center; margin-top: 1.5rem; color: var(--text-medium); }
.signup-link a { color: var(--text-dark); font-weight: 600; text-decoration: none; }
.signup-link a:hover { text-decoration: underline; color: var(--accent-copper-dark); }

/* ======================================================================= */
/* BÖLÜM 6: BİLDİRİM VE RESPONSIVE
/* ======================================================================= */
#notification-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.notification {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); color: var(--text-dark);
    padding: 1rem 1.25rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05); z-index: 1000; display: flex; align-items: center;
    gap: 1rem; max-width: 350px; animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; overflow: hidden;
}
.notification.success { border-left: 4px solid var(--accent-success); }
.notification.success i { color: var(--accent-success); }
.notification.error { border-left: 4px solid var(--accent-error); }
.notification.error i { color: var(--accent-error); }
.notification i { font-size: 1.4rem; }
.notification-title { font-weight: 600; margin-bottom: 2px; font-size: 1.05rem; font-family: 'Playfair Display', serif;}
.notification-text { font-size: 0.9rem; color: var(--text-medium); font-family: 'Cormorant Garamond', serif;}
.notification::before {
    content: ''; position: absolute; left: 0; bottom: 0; height: 4px;
    width: 100%; animation: progress 2.8s linear forwards;
}
.notification.success::before { background-color: var(--accent-success); }
.notification.error::before { background-color: var(--accent-error); }
@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes progress { from { width: 100%; } to { width: 0%; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

@media screen and (max-width: 640px) {
    .signup-container { padding: 2rem 1.5rem; }
    .birthdate-group { flex-direction: column; }
}