/* Giriş / kayıt — base.css ile birlikte yüklenir */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(212, 168, 83, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(166, 124, 46, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        var(--bg);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.auth-logo span {
    color: var(--primary);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label,
.form-group .label-with-counter {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.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;
    letter-spacing: 0.02em;
}

.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.75rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group input::placeholder {
    color: #6b7280;
}

.field-error {
    display: block;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.role-option {
    position: relative;
}

.role-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.role-option input:checked + label {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--text);
}

.role-icon {
    font-size: 1.5rem;
}

#musician-fields,
#venue-fields {
    display: none;
}

#musician-fields.visible,
#venue-fields.visible {
    display: block;
}

.auth-card textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
}

.auth-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .auth-card .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.field-required {
    color: #f87171;
}

.btn-google {
    margin-top: 0.75rem;
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }
}
