/* Authentication and Login Page Styles */

/* Login form container styling */
.auth-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.auth-card {
    background: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: inherit;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    line-height: 1.6;
}

/* Form field styling with icons */
.form-field {
    margin-bottom: 2rem;
    position: relative;
}

.form-field-with-icon {
    position: relative;
}

.form-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--md-sys-color-on-surface-variant);
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

/* Override removed - padding-left is set directly on .form-field input */

.form-field label {
    display: block;
    font-size: inherit;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 0.625rem;
}

.form-field input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 52px; /* Space for icon */
    font-size: inherit; /* Use default font size */
    border: 1.5px solid var(--md-sys-color-outline-variant);
    border-radius: 10px;
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    transition: all 0.2s ease;
    min-height: 56px;
}

.form-field input:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 3px rgba(var(--md-sys-color-primary-rgb), 0.1);
}

.form-field input::placeholder {
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.6;
}

/* Submit button styling */
.auth-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: inherit;
    font-weight: 600;
    color: var(--md-sys-color-on-primary);
    background: var(--md-sys-color-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    min-height: 56px;
    line-height: 1.5;
}

.auth-submit:hover {
    background: var(--md-sys-color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--md-sys-color-primary-rgb), 0.25);
}

.auth-submit:active {
    transform: translateY(0);
}

/* Links styling */
.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.auth-link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-size: inherit;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.auth-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-forgot {
    color: var(--md-sys-color-on-surface-variant);
    font-size: inherit;
    margin: 0 0 0.5rem 0;
}

/* Error message styling */
.auth-error {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: inherit;  /* Use default font size for better readability */
    font-weight: 500;
    line-height: 1.5;
}

/* Message content for success/confirmation pages */
.auth-message {
    margin-bottom: 2rem;
}

.auth-message p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface);
}

.auth-message p:last-child {
    margin-bottom: 0;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Responsive design */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-container {
        padding: 2rem 1rem;
    }
}