:root {
    --primary: #6c5ce7;
    --glass: rgba(255,255,255,0.9);
    --bg: #f8f9fd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html, body {
    height: 100%
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(180deg, var(--bg), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Layout */
.left-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.03), rgba(108,92,231,0.06));
    padding: 40px;
}

.right-side {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.floating-image {
    width: 380px;
    height: 380px;
    border-radius: 18px;
    background-image: url('../assets/img/gelinlik.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(108,92,231,0.12);
    transform: rotateY(15deg) rotateX(5deg);
}

/* Glass card */
.glass-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(108,92,231,0.08);
    border: 1px solid rgba(108,92,231,0.08);
    text-align: center;
}

    .glass-card h2 {
        color: var(--primary);
        margin-bottom: 6px;
        font-size: 1.6rem;
    }

    .glass-card p {
        color: #666;
        margin-bottom: 18px;
        font-weight: 600
    }

/* Inputs */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 12px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow .15s, border-color .15s;
}

input:focus {
    box-shadow: 0 6px 18px rgba(108,92,231,0.08);
    border-color: var(--primary);
}

/* Button */
button {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg,var(--primary), #9575cd);
    color: white;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    button:not(:disabled):hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(108,92,231,0.18);
    }

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.85);
    z-index: 999;
}

.loader-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* responsive */
@media (max-width:900px) {
    .left-side {
        display: none
    }

    .right-side {
        position: static;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px
    }

    .floating-image {
        width: 220px;
        height: 220px
    }
}
