/* ======================================================================= */
/* BÖLÜM 1: TEMEL DEĞİŞKENLER VE KURULUM
/* ======================================================================= */
:root {
    --bg-main: #F3EAD3; 
    --bg-gradient: linear-gradient(135deg, #F3EAD3, #EFE8D1);
    --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%),
                radial-gradient(circle at 50% 50%, rgba(255, 245, 238, 0.2) 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-delay: 0s; animation-duration: 25s; }
.shape:nth-child(2) { width: 80px; height: 80px; top: 60%; left: 80%; animation-delay: 5s; animation-duration: 20s; }
.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; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* ======================================================================= */
/* BÖLÜM 3: GİRİŞ KARTI
/* ======================================================================= */
.login-container {
    width: 100%;
    max-width: 520px;
    background-color: var(--card-bg);
    background-image: var(--paper-texture-svg);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--card-border);
    animation: fadeIn 1s ease-out;
    transition: all 0.4s ease-out;
}
.login-container:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.login-header { text-align: center; margin-bottom: 2.5rem; }
.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.8rem; }
.form-group label { color: var(--text-dark); font-size: 1.1rem; font-weight: 500; font-family: var(--font-elegant); margin-bottom: 0.6rem; 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;
}
.input-anim-container input {
    padding: 0.8rem;
    font-size: 1.1rem;
    font-family: var(--font-elegant);
}
.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 { 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 { transform-origin: bottom left; transform: scaleX(1); }
.input-anim-container .right { right: 0; transform-origin: top right; }
.input-anim-container 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 { transform-origin: top right; transform: scaleX(1); }
.input-anim-container .left { left: 0; transform-origin: bottom left; }
.input-anim-container 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;
}
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; }

.options-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; font-size: 0.95rem; }
.remember-me { display: flex; align-items: center; gap: 0.5rem; }
.remember-me input { width: 16px; height: 16px; accent-color: var(--accent-copper); }
.forgot-password { color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
.forgot-password:hover { color: var(--accent-copper-dark); }

.divider { display: flex; align-items: center; text-align: center; margin: 2rem 0; color: var(--text-medium); font-size: 0.9rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--card-border); }
.divider span { padding: 0 1rem; }

.btn-google {
    width: 100%; padding: 0.8rem; border-radius: 8px;
    background: #fff; color: var(--text-dark); border: 1px solid var(--card-border);
    font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.btn-google:hover { border-color: var(--accent-copper-light); background-color: #fcfcfc; }
.btn-google i { color: #DB4437; font-size: 1.2rem; }

.signup-link { text-align: center; margin-top: 2rem; 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 5: YENİ SHIMMER BUTON TASARIMI (GÜNCELLENDİ)
/* ======================================================================= */
.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;
    
    /* GÜNCELLEME: Yazıyı ortalamak için flexbox kullanıldı */
    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-bottom: 1.8rem;
}

.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%;
    rotate: 0;
    transform: rotate(-90deg);
    
    /* GÜNCELLEME: Işığın görünürlüğü artırıldı */
    opacity: calc((var(--active) * 0.3) + 0.7);
    filter: blur(3px);
    background: conic-gradient(
        from 0deg,
        transparent 0 290deg, /* Işık açısı genişletildi */
        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;
}

/* ======================================================================= */
/* BÖLÜM 6: BİLDİRİM VE RESPONSIVE AYARLAR
/* ======================================================================= */
#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';}
.notification-text { font-size: 0.9rem; color: var(--text-medium); }

.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%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes progress { from { width: 100%; } to { width: 0%; } }
@keyframes rotating { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .shape { width: 80px !important; height: 80px !important; }
}
@media screen and (max-width: 480px) {
    .login-container { padding: 2rem 1.5rem; }
    .shape { width: 50px !important; height: 50px !important; }
}