*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0d0f1a;
    --accent:    #e8a230;
    --accent2:   #f0c060;
    --brand-red:  #d9261f;
    --brand-red2: #b3161a;
    --text:      #e8e8f0;
    --muted:     #7a7d9a;
    --danger:    #e05555;
    --success:   #3db87a;
}

html, body {
    height: 100%;
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    color: var(--text);
    overflow: hidden;
}

/* Layout — sol: marka görseli, sağ: giriş formu */
.page {
    display: flex;
    min-height: 100vh;
}

.login-visual {
    flex: 0 0 34%;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}
.login-visual::before {
    content: '';
    position: absolute;
    inset: -30px;
    background-image: url('/img/loginimg.png');
    background-size: cover;
    background-position: center;
    filter: blur(35px) brightness(0.85) saturate(1.1);
    transform: scale(1.15);
}
.login-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/img/loginimg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 380px;
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Logo / Header */
.logo-area {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), #c87820);
    border-radius: 26px;
    margin-bottom: 4px;
    box-shadow: 0 8px 24px rgba(232,162,48,0.3);
}

.logo-icon svg { width: 28px; height: 28px; fill: #0d0f1a; }

.logo-image { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.logo-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1e2e;
    letter-spacing: -0.3px;
}

.logo-title-img {
    height: 28px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.logo-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
    font-weight: 400;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #374151;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    background: #f3f4f7;
    border: 1.5px solid transparent;
    border-radius: 11px;
    color: #1a1e2e;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-control::placeholder { color: #9599a6; font-weight: 400; }

.form-control:focus {
    border-color: var(--brand-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(217,38,31,0.08);
}

.form-control.input-error {
    border-color: var(--danger);
}

/* Error message */
.error-msg {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(224,85,85,0.08);
    border: 1px solid rgba(224,85,85,0.25);
    border-radius: 8px;
    color: #c23f3f;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    animation: shakeIn 0.3s ease;
}

.error-msg.visible { display: flex; }

/* Success message */
.success-msg {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(61,184,122,0.12);
    border: 1px solid rgba(61,184,122,0.3);
    border-radius: 8px;
    color: #1f8a54;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    animation: shakeIn 0.3s ease;
}

.success-msg.visible { display: flex; }

@keyframes shakeIn {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Submit button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--brand-red);
    border: none;
    border-radius: 11px;
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 6px 20px rgba(217,38,31,0.28);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(217,38,31,0.38);
    background: var(--brand-red2);
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
}

/* Loading spinner on button */
.btn-login .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-login.loading .btn-text { display: none; }
.btn-login.loading .spinner { display: block; }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

/* Validation */
.asp-validation-summary-errors { display: none; }

@media (max-width: 760px) {
    html, body { overflow: auto; }
    .login-visual { display: none; }
    .login-form-side { min-height: 100vh; padding: 32px 20px; }
}
