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

/* ========== ROOT ========== */
:root {
    --primary: #1e3a5f;
    --secondary: #f28c28;
    --bg-dark: #0f172a;
    --bg-light: #ffffff;
    --text-dark: #020617;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --danger: #dc2626;
    --radius: 14px;
    --transition: 0.25s ease;
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== BODY (Layout kullandığımız için flex yok) ========== */
body {
    font-family: var(--font);
    background: #f8fafc;
    color: var(--text-dark);
}

/* ========== MAIN CONTAINER ========== */
.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* ========== LEFT / BRAND SECTION ========== */
.brand-section {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    padding: 64px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;      /* DİKEY ORTA */
    justify-content: center;
}

.accent-circle {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.15);
    top: -140px;
    right: -140px;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    transform: translateY(-20px); /* göz hizası için */
}


.brand-tagline {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 48px;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 32px;
}


.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;

    color: #f28c28;          /* marka rengi */
    font-size: 18px;
}

.feature-item:hover .feature-icon {
    background: rgba(242, 140, 40, 0.25);
    transform: scale(1.05);
}


.feature-text {
    font-size: 15px;
    opacity: 0.95;
}

/* ========== RIGHT / FORM SECTION ========== */
.form-section {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

/* LOGO */
.logo-wrapper {
    text-align: center;
    margin-bottom: 28px;
}

.logo-wrapper img {
    max-width: 220px;
    height: auto;
}

/* HEADER */
.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #f9fafb;
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

/* ========== OPTIONS ========== */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 24px;
}

.remember-me {
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ========== BUTTON ========== */
.btn-login {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0b2540);
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.35);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(30, 58, 95, 0.25);
}

/* ========== FOOTER ========== */
.form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== ERRORS / VALIDATION ========== */
.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--danger);
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.validation-summary-valid {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .brand-section {
        display: none;
    }

    .form-section {
        padding: 32px 20px;
    }
}

/* ========== ANIMATED BACKGROUND SHAPES ========== */
.accent-circle {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.18);
    top: 50%;
    right: -160px;
    transform: translateY(-50%);
    animation: floatRotate 18s linear infinite;
}

.accent-circle::before,
.accent-circle::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: floatRotateReverse 22s linear infinite;
}

.accent-circle::before {
    width: 260px;
    height: 260px;
    top: -80px;
    left: -120px;
}

.accent-circle::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: 40px;
}

/* ANIMATIONS */
@keyframes floatRotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes floatRotateReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}
