:root {
    --bg-gradient-start: #fdfbfb;
    --bg-gradient-end: #ebedee;
    --right-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --input-bg: #f9fafb;
    --input-focus: #ffffff;
    --brand-color: #c12127;
    --brand-color-hover: #9c1a20;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--right-bg);
}

.split-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sol Taraf */
.left-section {
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset -10px 0 30px rgba(0, 0, 0, 0.02);
    z-index: 2;
}

.left-section::before,
.left-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(193, 33, 39, 0.03);
    z-index: 0;
}

.left-section::before {
    width: 50vw;
    height: 50vw;
    top: -20vw;
    left: -20vw;
    animation: pulse 10s ease-in-out infinite alternate;
}

.left-section::after {
    width: 40vw;
    height: 40vw;
    bottom: -15vw;
    right: -15vw;
    animation: pulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    z-index: 10;
    position: relative;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.eba-text-img {
    height: 75px;
    object-fit: contain;
}

.eba-character-container {
    width: 150px;
    height: 150px;
    position: relative;
}

.welcome-text {
    z-index: 1;
    text-align: center;
    color: var(--text-primary);
    margin-top: 20px;
    animation: fadeIn 1s ease-out;
}

.welcome-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sağ Taraf - Form */
.right-section {
    width: 50%;
    height: 100%;
    background-color: var(--right-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    padding: 2.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-logo-container img {
    display: block;
}

/* Alerts */
.alert-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-container:not(:empty) {
    margin-bottom: 20px;
}

.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert span {
    flex: 1;
}

.alert .close-alert {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert .close-alert:hover {
    opacity: 1;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

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

/* Form */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.field-error {
    color: #991b1b;
    font-size: 0.8rem;
    margin-top: 6px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-icon input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-icon input::placeholder {
    color: #9ca3af;
}

.input-icon input:focus {
    background: var(--input-focus);
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(193, 33, 39, 0.1);
}

.input-icon:focus-within i {
    color: var(--brand-color);
}

.form-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-options::before,
.form-options::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    accent-color: var(--brand-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--brand-color-hover);
    text-decoration: underline;
}

.forgot-password-row {
    margin-top: 8px;
    text-align: right;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--brand-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(193, 33, 39, 0.25);
}

.login-btn:hover:not(:disabled) {
    background: var(--brand-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 33, 39, 0.35);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 10px;
}

.social-login {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.social-btn img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    background: var(--input-focus);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-btn:hover img {
    transform: scale(1.1);
}

.social-btn.e-devlet:hover {
    border-color: rgba(229, 37, 43, 0.4);
    box-shadow: 0 4px 12px rgba(229, 37, 43, 0.15);
}

.social-btn.mebbis:hover {
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
}

.social-btn.aoo:hover {
    border-color: rgba(46, 139, 87, 0.4);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.15);
}

.mobile-logo-container {
    display: none;
}

/* Mobil Görünüm */
@media screen and (max-width: 900px) {
    body {
        overflow-y: auto;
    }

    .split-layout {
        flex-direction: column;
    }

    .left-section {
        display: none;
    }

    .mobile-logo-container {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .mobile-logo-container img {
        height: 38px;
        object-fit: contain;
    }

    .right-section {
        width: 100%;
        height: 100vh;
        padding: 5vh 20px 40px;
        align-items: center;
        justify-content: flex-start;
        z-index: 1;
    }

    .login-wrapper {
        padding: 2.5rem 2rem;
        box-shadow: none;
        border: none;
        background: transparent;
        backdrop-filter: none;
    }
}