.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    animation: fadeUp 0.3s ease both;
}

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

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--accent-soft);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.auth-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-text);
}

.auth-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-messages {
    margin-bottom: 1.25rem;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    background: var(--danger-soft);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--danger);
    border: 1px solid rgba(235, 87, 87, 0.2);
    margin-bottom: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 42px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 0.9rem 0 2.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.auth-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface);
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-on-accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}



.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.auth-switch a {
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition);
}

.auth-switch a:hover {
    opacity: 0.75;
}