/* style.css */

/* --- DÜZENLENEBİLİR RENKLER (AYDINLIK TEMA) --- */
:root {
    --bg-color: #f2e9d3;
    --text-color: #5c6a72;
    --link-color: #9a9e96;
    --link-hover-color: #000000;
    --input-bg: #f2e9d3;
    --input-border: #e0e0e0;
    --input-focus: #a0a0a0;
}

/* --- DÜZENLENEBİLİR RENKLER (KARANLIK TEMA) --- */
[data-theme="dark"] {
    --bg-color: #181818;
    --text-color: #d3d3d3;
    --link-color: #505050;
    --link-hover-color: #ffffff;
    --input-bg: #181818;
    --input-border: #333333;
    --input-focus: #777777;
}

/* --- GENEL SIFIRLAMA VE YAPI --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease; /* Tema geçişleri için yumuşak animasyon */
}

/* --- MİNİMALİST ORTALAMA KONTEYNERİ --- */
.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BAŞLIK (KNDMR) VE LOGO --- */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    height: 4.5rem; /* Başlıkla uyumlu olması için logo boyutu */
    width: auto;
    object-fit: contain;
    border-radius: 8px; /* İsteğe bağlı köşeleri yumuşatma */
}

.title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    user-select: none;
}

/* --- LİNKLER --- */
.links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05rem;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* --- ŞİFRE KUTUSU --- */
.login-container {
    margin-top: 1rem;
}

.login-container input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    width: 220px;
    font-family: inherit;
    letter-spacing: 0.1rem;
}

.login-container input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] .login-container input:focus {
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.login-container input::placeholder {
    color: var(--link-color);
    opacity: 0.5;
    letter-spacing: normal;
}

/* --- TEMA DEĞİŞTİRME BUTONU --- */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}
