/* Account/Login.cshtml dosyasından taşındı (satır içi blok). */
* { box-sizing: border-box; }
html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}
body { 
    background-color: #f8fafc !important;
    background-image: url('/hkmo/background.png') !important; 
    background-repeat: no-repeat !important; 
    background-position: center center !important; 
    background-attachment: fixed !important; 
    background-size: cover !important; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    overflow-x: hidden;
    min-height: 100%;
    margin: 0;
}
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .form-group input, input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 768px) {
    body { background-attachment: scroll !important; }
}
.auth-container { 
    min-height: 100vh; 
    min-height: 100dvh;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 1.5rem 1rem;
}
.auth-card { 
    width: 400px; 
    max-width: 100%; 
    border: 1px solid rgba(226, 232, 240, 0.8); 
    border-radius: 14px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(8px); 
}
.auth-body { padding: 1.75rem 1.5rem; }

.brand-header { text-align: center; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: center; align-items: center; gap: 0.75rem; }
.brand-header img { height: 35px; max-height: 40px; width: auto; object-fit: contain; }
.brand { font-weight: 700; letter-spacing: .4px; color: #1f295d; white-space: nowrap; font-size: 1.25rem; }
.brand .gis { color: #ED1C24; }
.subtitle { text-align: center; font-size: 0.8125rem; color: #64748b; margin-bottom: 1.25rem; }

.form-group { margin-bottom: 0.875rem; }
.form-group label { font-size: 0.775rem; color: #475569; margin-bottom: 0.35rem; display: block; font-weight: 500; }
.form-group input { width: 100%; min-height: 42px; padding: 0.55rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.85rem; transition: all 0.15s; }
.form-group input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.form-group input::placeholder { color: #94a3b8; }

.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 2.75rem; }
.password-toggle { 
    position: absolute; 
    right: 0; 
    top: 0; 
    bottom: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; 
    border: none; 
    color: #94a3b8; 
    cursor: pointer; 
    padding: 0; 
    font-size: 1rem; 
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.password-toggle:hover { color: #475569; }

.form-options { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 0.35rem;
    margin-bottom: 1.25rem; 
    font-size: 0.8125rem; 
    width: 100%;
    padding: 0 1px;
}
.form-options .form-check { 
    margin: 0 !important; 
    padding: 0 !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 0.5rem; 
    min-height: auto !important;
    cursor: pointer;
}
.form-options .form-check .form-check-input { 
    float: none !important; 
    margin: 0 !important; 
    margin-left: 0 !important;
    width: 1.1rem !important; 
    height: 1.1rem !important; 
    cursor: pointer; 
    accent-color: #1e3a5f; 
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 4px !important;
    flex-shrink: 0;
    box-shadow: none !important;
    position: static !important;
}
.form-options .form-check .form-check-input:checked {
    background-color: #1e3a5f !important;
    border-color: #1e3a5f !important;
}
.form-options .form-check .form-check-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}
.form-options .form-check .form-check-label { 
    font-size: 0.8125rem !important; 
    color: #475569 !important; 
    cursor: pointer; 
    user-select: none;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    font-weight: 500;
}
.form-options .forgot-link { 
    color: #2563eb; 
    text-decoration: none; 
    font-size: 0.8125rem; 
    font-weight: 500; 
    padding: 0.2rem 0;
    transition: color 0.15s; 
    white-space: nowrap;
}
.form-options .forgot-link:hover { 
    color: #1d4ed8; 
    text-decoration: underline; 
}

.btn-submit { 
    width: 100%; 
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b; 
    color: #fff; 
    border: none; 
    padding: 0.7rem 1rem; 
    border-radius: 8px; 
    font-size: 0.875rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background 0.15s; 
}
.btn-submit:hover { background: #334155; }
.btn-submit:active { transform: scale(0.99); }

.divider { height: 1px; background: #f1f5f9; margin: 1.25rem 0; }
.footer-text { text-align: center; font-size: 0.8rem; color: #64748b; }
.footer-text a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.footer-text a:hover { text-decoration: underline; }

.alert-msg { padding: 0.625rem 0.85rem; border-radius: 8px; font-size: 0.8rem; margin-bottom: 0.875rem; }
.alert-msg:empty { display: none !important; }
.alert-msg.validation-summary-valid { display: none !important; }
.alert-msg ul { margin: 0; padding-left: 1.25rem; list-style-type: disc; }
.alert-msg ul li { margin-bottom: 0.25rem; }
.alert-msg ul li:only-child[style*="display:none"] { display: none !important; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }

.validation-error { color: #dc2626; font-size: 0.7rem; margin-top: 0.2rem; display: block; font-weight: 500; }

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .form-group input, input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 768px) {
    .auth-container {
        min-height: 100vh;
        min-height: 100svh;
        padding: max(1rem, env(safe-area-inset-top)) 0.75rem max(1rem, env(safe-area-inset-bottom));
        align-items: flex-start;
    }
    .auth-card { width: 100%; max-width: 400px; border-radius: 14px; }
    .auth-body { padding: 1.25rem 1.1rem; }
    .form-group input { padding: 0.6rem 0.85rem; font-size: 16px !important; min-height: 44px; }
    .password-wrapper input { padding-right: 3rem; }
    .password-toggle { width: 3rem; }
    .btn-submit { min-height: 46px; font-size: 0.925rem; }
    .form-options {
        margin-top: 0.5rem;
        margin-bottom: 1.35rem;
        padding: 0 1px;
    }
    .form-options .form-check {
        gap: 0.55rem;
    }
    .form-options .form-check-input {
        width: 1.15rem !important;
        height: 1.15rem !important;
    }
    .form-options .form-check-label {
        font-size: 0.85rem !important;
    }
    .form-options .forgot-link {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
}

