/* =========================================
   RESET & TEMEL AYARLAR
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #f8fafc; /* Slate-50: Göz yormayan zemin */
    color: #0f172a; /* Slate-900: Okunaklı metin */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.auth-container {
    width: 100%;
    max-width: 400px; /* Kompakt genişlik */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   HEADER (LOGO & BAŞLIK)
   ========================================= */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 48px;
    height: 48px;
    color: #4f46e5; /* Indigo-600: Marka Rengi */
    margin-bottom: 16px;
    display: inline-block;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: 15px;
    color: #64748b; /* Slate-500 */
}

/* =========================================
   LOGIN KARTI
   ========================================= */
.auth-card {
    background: #ffffff;
    width: 100%;
    border-radius: 12px;
    /* Hafif ve modern gölge */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.04);
    padding: 32px;
    border: 1px solid #e2e8f0; /* Slate-200 */
}

/* =========================================
   FORM ELEMANLARI
   ========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}
.form-label-row .form-label {
    margin-bottom: 0;
}

.form-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
    background-color: #fff;
    border: 1px solid #cbd5e1; /* Slate-300 */
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.form-input:focus {
    border-color: #6366f1; /* Indigo-500 */
    outline: 0;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); /* Focus Ring */
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Hata Durumları */
.form-input.is-invalid {
    border-color: #ef4444; /* Red-500 */
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linecap='round' d='M6 3.5v3M6 8.5h0'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}
.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-feedback {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

/* =========================================
   BUTONLAR & LİNKLER
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #4338ca; /* Indigo-700 */
}

.link-sm {
    font-size: 13px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}
.link-sm:hover {
    text-decoration: underline;
    color: #4338ca;
}

/* =========================================
   ALERT (HATA MESAJI KUTUSU)
   ========================================= */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 10px;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-icon {
    width: 18px;
    height: 18px;
}

/* =========================================
   FOOTER
   ========================================= */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}