/* Giriş / kayıt — premium, kompakt, tüm ekranlar */

.auth-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg);
    overflow-x: hidden;
}

.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -8%, rgba(201, 162, 39, 0.1), transparent 58%),
        radial-gradient(ellipse 50% 35% at 100% 100%, rgba(201, 162, 39, 0.05), transparent 50%);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo a {
    font-size: 1.65rem;
    font-weight: var(--fw-bold);
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.6px;
}

.auth-logo span {
    color: var(--primary);
}

.auth-card {
    background: var(--surface);
    border: 1px solid rgba(201, 162, 39, 0.14);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    font-size: 1.45rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.25rem;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 1.35rem;
}

.auth-form .form-group {
    margin-bottom: 0.9rem;
}

.form-group label,
.form-group .label-with-counter {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.label-with-counter {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.char-counter {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.38;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.char-counter.is-near-limit { opacity: 0.55; }
.char-counter.is-at-limit { opacity: 0.72; }

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.68rem 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group input::placeholder {
    color: #8e8e93;
}

.field-error {
    display: block;
    color: var(--error);
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

/* Hesap türü — kompakt pill */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.role-option {
    position: relative;
}

.role-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    min-height: 44px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.role-option input:checked + label {
    border-color: rgba(201, 162, 39, 0.55);
    background: var(--primary-soft);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.role-icon {
    font-size: 1.1rem;
    line-height: 1;
}

#musician-fields,
#venue-core-fields,
#venue-optional-fields,
#venue-fields {
    display: none;
}

#musician-fields.visible,
#venue-core-fields.visible,
#venue-optional-fields.visible,
#venue-fields.visible {
    display: block;
}

.auth-card textarea {
    width: 100%;
    padding: 0.68rem 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.auth-card textarea:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-form-grid {
    display: grid;
    gap: 0;
}

.auth-form-grid--passwords {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.auth-form-grid--passwords .form-group {
    margin-bottom: 0.9rem;
}

.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.field-required { color: #f87171; }

.auth-form .btn-primary {
    width: 100%;
    margin-top: 0.35rem;
    min-height: 46px;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 11px;
}

.btn-google {
    width: 100%;
    margin-top: 0;
    min-height: 44px;
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 1.15rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* İsteğe bağlı profil — sade accordion */
.auth-profile-details {
    margin: 0.15rem 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    overflow: hidden;
}

.auth-profile-details summary {
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.15s, background 0.15s;
}

.auth-profile-details summary:hover {
    color: var(--text);
    background: rgba(201, 162, 39, 0.04);
}

.auth-profile-details summary::-webkit-details-marker {
    display: none;
}

.auth-profile-details summary::after {
    content: '+';
    float: right;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.45;
    line-height: 1.2;
}

.auth-profile-details[open] summary::after {
    content: '−';
}

.auth-profile-details[open] summary {
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.auth-profile-details .auth-profile-details-body {
    padding: 0.65rem 0.85rem 0.85rem;
}

.auth-profile-details .auth-profile-details-body .form-group {
    margin-bottom: 0.75rem;
}

.auth-profile-details .auth-profile-details-body .form-group:last-child {
    margin-bottom: 0;
}

/* Kayıt sayfası — daha kompakt */
.auth-page--register .auth-container {
    max-width: 460px;
}

.auth-page--register .auth-card {
    padding: 1.5rem 1.4rem;
}

.auth-page--register .auth-card h1 {
    font-size: 1.35rem;
}

.auth-page--register .auth-subtitle {
    margin-bottom: 1.15rem;
}

.auth-page--register .auth-form .form-group {
    margin-bottom: 0.8rem;
}

.auth-page--register .auth-card textarea {
    min-height: 68px;
}

.auth-page--register .auth-logo {
    margin-bottom: 1.15rem;
}

/* Tablet — kaydırılabilir, kompakt */
@media (max-width: 1024px) {
    .auth-page {
        align-items: flex-start;
        justify-content: flex-start;
        padding: max(1rem, env(safe-area-inset-top, 0px)) 1.15rem
            max(1.75rem, env(safe-area-inset-bottom, 0px));
    }

    .auth-container {
        max-width: 480px;
        margin: 0 auto;
    }

    .auth-logo {
        margin-bottom: 1.1rem;
    }

    .auth-subtitle {
        margin-bottom: 1.1rem;
    }
}

/* Mobil */
@media (max-width: 640px) {
    .auth-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-card {
        padding: 1.25rem 1.1rem;
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    }

    .auth-card h1 {
        font-size: 1.28rem;
    }

    .auth-logo a {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select {
        min-height: 44px;
        font-size: 1rem;
    }

    .auth-form-grid--passwords {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-card .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .role-option label {
        font-size: 0.75rem;
        padding: 0.6rem 0.35rem;
        gap: 0.3rem;
    }

    .role-icon {
        font-size: 1rem;
    }
}

/* Masaüstü — ortalanmış, tam görünür kart */
@media (min-width: 1025px) {
    .auth-page--register {
        padding: 2rem 1.5rem;
    }

    .auth-page--register .auth-container {
        max-width: 420px;
    }

    .auth-page--register .auth-card {
        padding: 1.65rem 1.5rem 1.5rem;
    }

    .auth-page--register .auth-form .form-group {
        margin-bottom: 0.75rem;
    }

    .auth-page--register .divider {
        margin: 0.85rem 0;
    }

    .auth-page--register .auth-footer {
        margin-top: 1rem;
    }
}
