:root {
    --primary: #0071e3;
    --primary-dark: #0077ed;
    --primary-light: rgba(0, 113, 227, 0.1);
    --success: #34c759;
    --danger: #ff3b30;
    --text: #1d1d1f;
    --text-muted: #86868b;
    --bg: #f5f5f7;
}

* { box-sizing: border-box; }
body {
    height: 100vh;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Arka Plan Dekorasyonu - Daha Dinamik */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}
.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    animation: blobFloat 20s infinite alternate ease-in-out;
}
.blob-1 { top: -200px; right: -100px; background: var(--primary); }
.blob-2 { bottom: -200px; left: -100px; background: var(--success); animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; width: 400px; height: 400px; background: #af52de; opacity: 0.1; animation-delay: -10s; }

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

.login-container {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-logo-box {
    width: 100%;
    max-width: 300px;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: transform 0.3s ease;
    box-shadow: none;
}
.login-logo-box:hover { transform: scale(1.02); }

.login-logo-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -1.5px;
    margin: 0 0 12px;
    color: var(--text);
}
.login-header p {
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 35px;
}

.error-message {
    background: #fff2f2;
    color: #cf222e;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ffdbdb;
    text-align: left;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.input-wrapper {
    position: relative;
}
.input-wrapper input {
    width: 100%;
    padding: 18px 24px;
    padding-left: 55px;
    padding-right: 55px;
    border-radius: 20px;
    border: 2px solid transparent;
    background: rgba(0,0,0,0.03);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s;
    color: var(--text);
}
.input-wrapper input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-light);
}
.input-wrapper svg.field-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
}
.input-wrapper input:focus + svg.field-icon {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s;
}
.toggle-password:hover { color: var(--text); background: rgba(0,0,0,0.05); }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    user-select: none;
}
.remember-me input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-password {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.forgot-password:hover { opacity: 0.8; }

.btn-submit {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 15px 35px -10px rgba(0, 113, 227, 0.4);
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 45px -10px rgba(0, 113, 227, 0.5);
}
.btn-submit:active { transform: translateY(0); }

.login-footer {
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
.login-footer strong { color: var(--text); font-weight: 700; }

@media (max-width: 480px) {
    .login-card { padding: 35px 25px; border-radius: 35px; }
    .login-header h1 { font-size: 28px; }
    .login-container { padding: 15px; }
}