/* Auth Page Styles - iOS Minimalist */

body.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg);
    padding-top: calc(var(--safe-top) + var(--spacing-xl));
    padding-bottom: calc(var(--safe-bottom) + var(--spacing-xl));
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo svg {
    width: 36px;
    height: 36px;
    color: white;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.auth-subtitle {
    color: var(--muted);
    font-size: 16px;
}

/* Auth Form */
.auth-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.auth-input {
    width: 100%;
    padding: 18px var(--spacing-lg);
    border: none;
    font-size: 17px;
    font-family: inherit;
    background: transparent;
    color: var(--ink);
    border-bottom: 1px solid var(--border-light);
}

.auth-input:last-of-type {
    border-bottom: none;
}

.auth-input:focus {
    outline: none;
    background: var(--primary-light);
}

.auth-input::placeholder {
    color: var(--muted);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
}

.auth-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.auth-submit:hover {
    background: var(--primary-dark);
}

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

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error message */
.auth-error {
    background: var(--destructive-light);
    color: var(--destructive);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-top: var(--spacing-md);
    animation: shake 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Footer links */
.auth-footer {
    text-align: center;
}

.auth-link {
    color: var(--primary);
    font-weight: 500;
}

.auth-divider {
    color: var(--muted);
    margin: 0 var(--spacing-sm);
}

/* Invite required state */
.auth-invite-required {
    text-align: center;
    padding: var(--spacing-xl);
}

.auth-invite-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--warning-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-invite-icon svg {
    width: 40px;
    height: 40px;
    color: var(--warning);
}

@media (max-width: 480px) {
    body.auth-page {
        padding: var(--spacing-md);
    }

    .auth-title {
        font-size: 24px;
    }
}