.web-auth-page {
    max-width: 28rem;
    margin: 0 auto;
}

.web-auth-card {
    background-color: var(--web-bg-surface);
    border: 1px solid var(--web-border-color);
    border-radius: var(--web-radius);
    box-shadow: var(--web-shadow-md);
    padding: 1.5rem;
}

.web-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.web-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--web-text-primary);
    margin-bottom: 0.25rem;
}

.web-auth-slogan {
    font-size: 0.875rem;
    color: var(--web-text-secondary);
    margin: 0;
}

.web-auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--web-border-color);
}

.web-auth-tab {
    flex: 1;
    padding: 0.625rem 0;
    border: none;
    background: none;
    color: var(--web-text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    position: relative;
}

.web-auth-tab.active {
    color: var(--web-color-primary);
    font-weight: 600;
}

.web-auth-tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background-color: var(--web-color-primary);
    border-radius: 1px;
}

.web-auth-field {
    margin-bottom: 1rem;
}

.web-auth-input-group {
    display: flex;
    align-items: stretch;
    background-color: var(--web-bg-muted);
    border: 1px solid var(--web-border-color);
    border-radius: var(--web-radius);
    overflow: hidden;
}

.web-auth-input-group:focus-within {
    border-color: var(--web-color-primary);
}

.web-auth-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--web-text-primary);
    font-size: 0.9375rem;
}

.web-auth-input:focus {
    outline: none;
}

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

.web-auth-code-row {
    display: flex;
    gap: 0.75rem;
}

.web-auth-code-row .web-auth-input-group {
    flex: 1;
}

.web-auth-btn-code {
    flex-shrink: 0;
    min-width: 6.5rem;
    padding: 0 1rem;
    border: none;
    border-radius: var(--web-radius);
    background-color: var(--web-color-primary);
    color: var(--web-text-inverse);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.web-auth-btn-code:hover:not(:disabled) {
    background-color: var(--web-color-primary-hover);
}

.web-auth-btn-code:disabled {
    background-color: var(--web-text-muted);
    cursor: not-allowed;
}

.web-auth-btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--web-radius);
    background-color: var(--web-color-primary);
    color: var(--web-text-inverse);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.web-auth-btn-primary:hover:not(:disabled) {
    background-color: var(--web-color-primary-hover);
}

.web-auth-btn-primary:disabled {
    background-color: var(--web-text-muted);
    cursor: not-allowed;
}

.web-auth-link {
    display: block;
    margin-top: 0.75rem;
    text-align: right;
    color: var(--web-color-primary);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.web-auth-link:hover {
    color: var(--web-color-primary-hover);
}

.web-auth-error {
    color: var(--web-color-primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.web-auth-help {
    margin: 0.4rem 0 0;
    color: var(--web-text-muted);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.web-auth-eye-btn {
    padding: 0 0.75rem;
    border: none;
    background: transparent;
    color: var(--web-text-muted);
    cursor: pointer;
}

.web-auth-eye-btn:hover {
    color: var(--web-text-primary);
}
