/* VivaLaPlayer giris / sifre sayfalari: iOS tarzi tek kart */
:root {
    --ios-bg: #f2f2f7;
    --ios-fill: rgba(118, 118, 128, 0.12);
    --ios-separator: rgba(60, 60, 67, 0.14);
    --ios-label: #1d1d1f;
    --ios-label-2: rgba(60, 60, 67, 0.72);
    --ios-label-3: rgba(60, 60, 67, 0.5);
    --ios-blue: #007aff;
    --ios-blue-dark: #0066d6;
}

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

html {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--ios-label);
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(0, 122, 255, 0.14), transparent 60%),
        radial-gradient(800px 500px at 100% 100%, rgba(88, 86, 214, 0.12), transparent 60%),
        var(--ios-bg);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #3d9bff 0%, #0062e0 100%);
    box-shadow: 0 10px 24px rgba(0, 122, 255, 0.35);
}

.auth-logo svg {
    width: 34px;
    height: 34px;
    fill: #fff;
    margin-left: 3px;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    margin: 0 0 26px;
    color: var(--ios-label-2);
    line-height: 1.45;
}

.auth-form {
    text-align: left;
}

/* iOS gruplu alanlar: tek kutu icinde ince cizgiyle ayrilmis satirlar */
.auth-group {
    border-radius: 14px;
    background: var(--ios-fill);
    overflow: hidden;
    margin-bottom: 16px;
}

.auth-group input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ios-label);
    font: inherit;
    font-size: 16px;
}

.auth-group input + input {
    border-top: 1px solid var(--ios-separator);
}

.auth-group input::placeholder {
    color: var(--ios-label-3);
}

.auth-group:focus-within {
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.16);
    background: #fff;
    outline: 1px solid var(--ios-blue);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 4px 20px;
    font-size: 15px;
    font-weight: 500;
}

/* iOS anahtari */
.auth-switch {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 51px;
    height: 31px;
    margin: 0;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.24);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

.auth-switch:checked {
    background: #34c759;
}

.auth-switch:checked::after {
    transform: translateX(20px);
}

.auth-switch:focus-visible {
    outline: 2px solid var(--ios-blue);
    outline-offset: 2px;
}

.auth-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--ios-blue);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.auth-button:hover {
    background: var(--ios-blue-dark);
}

.auth-button:active {
    transform: scale(0.98);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.auth-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

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

.auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.auth-alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: #b3001b;
}

.auth-alert-success {
    background: rgba(52, 199, 89, 0.14);
    color: #14692d;
}

.auth-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--ios-blue);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--ios-blue-dark);
}

.auth-footer {
    margin: 24px 0 0;
    color: var(--ios-label-3);
    font-size: 12.5px;
}

@media (max-width: 420px) {
    .auth-card {
        padding: 30px 22px 24px;
        border-radius: 22px;
    }
}
