/* /auth/css/auth-styles.css */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--color-background-light);
    padding: var(--space-md);
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-card__header {
    text-align: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.auth-card__title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.auth-card__description {
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.auth-card__content {
    padding: var(--space-lg);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-weight: var(--font-weight-medium);
}

.form-input {
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

.btn {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.2s;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
}

.w-full {
    width: 100%;
}

.auth-toggle {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.auth-toggle__link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-toggle__link:hover {
    text-decoration: underline;
}

/* --- Auth Modal Styles --- */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.auth-modal-content {
    margin: auto; /* Center the modal content */
    position: relative;
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    max-width: 450px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

.auth-modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.auth-modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    color: var(--color-text-secondary);
}

.auth-modal .auth-container {
    padding: 0 2rem 2rem;
}

.auth-modal .auth-card {
    border: none;
    box-shadow: none;
    padding: 0;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Google Sign-In Button Styles */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background-color: #FFFFFF;
    color: #444444;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-bottom: var(--space-md);
}

.google-signin-btn:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.google-signin-btn img {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-muted);
    margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-divider span {
    padding: 0 var(--space-md);
}
