/* ===== Authentication Pages - shadcn-inspired styles ===== */

/* Auth container - full screen centered */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--muted);
}

/* Auth card */
.auth-card {
    width: 100%;
    max-width: 400px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Card header */
.auth-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.auth-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background-color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo svg {
    width: 24px;
    height: 24px;
    color: var(--background);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}

.auth-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Card content */
.auth-card-content {
    padding: 1.5rem;
}

/* Form group */
.auth-form-group {
    margin-bottom: 1rem;
}

.auth-form-group:last-of-type {
    margin-bottom: 0;
}

/* Labels */
.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

/* Inputs */
.auth-input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid var(--input);
    background-color: var(--background);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.auth-input:focus {
    outline: none;
    border-color: var(--foreground);
    box-shadow: 0 0 0 1px var(--foreground);
}

.auth-input.input-validation-error {
    border-color: var(--destructive);
}

.auth-input.input-validation-error:focus {
    box-shadow: 0 0 0 1px var(--destructive);
}

/* Checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--input);
    accent-color: var(--foreground);
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    user-select: none;
}

/* Primary button */
.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-foreground);
    background-color: var(--primary);
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.auth-button:hover {
    opacity: 0.9;
}

.auth-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--foreground);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Divider */
.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.auth-divider-text {
    padding: 0 1rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social buttons container */
.auth-social-buttons {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

/* Social/outline button */
.auth-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background-color: var(--background);
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    gap: 0.5rem;
}

.auth-button-outline:hover {
    background-color: var(--muted);
    border-color: var(--foreground);
}

.auth-button-outline:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--foreground);
}

.auth-button-outline svg {
    width: 1rem;
    height: 1rem;
}

/* Card footer */
.auth-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.auth-footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.auth-link {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--muted-foreground);
}

/* Secondary links */
.auth-secondary-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.auth-secondary-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.auth-secondary-link:hover {
    color: var(--foreground);
}

/* Validation errors */
.auth-validation-error {
    font-size: 0.75rem;
    color: var(--destructive);
    margin-top: 0.25rem;
}

.auth-validation-summary {
    padding: 0.75rem;
    margin-bottom: 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--destructive);
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    color: var(--destructive);
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        border: none;
        box-shadow: none;
        background-color: var(--muted);
    }

    .auth-card-header,
    .auth-card-content,
    .auth-divider,
    .auth-social-buttons,
    .auth-secondary-links,
    .auth-card-footer {
        padding-left: 0;
        padding-right: 0;
    }

    .auth-card-footer {
        border-top: none;
    }
}
