/* auth.css - Modern Auth Pages Styling */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 220px); /* accounting for header & footer */
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background-color: var(--bg-surface);
    border: 1px solid var(--ep-border);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    padding: 3rem 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.auth-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.auth-brand {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-headline);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form .form-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper i {
    position: absolute;
    left: 1.1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input-wrapper i.toggle-password {
    left: auto;
    right: 1.1rem;
    pointer-events: auto;
    cursor: pointer;
}

.auth-input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    background-color: var(--input-bg);
    border: 1px solid var(--ep-border);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: var(--search-focus-border) !important;
    box-shadow: var(--search-focus-shadow) !important;
    outline: none;
}

.auth-input:focus + i {
    color: var(--ep-primary);
}

/* Remember me and links */
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

.auth-meta .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding-left: 0;
}

.auth-meta .form-check-input {
    margin: 0;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

.auth-meta .form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.auth-link {
    color: var(--ep-primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-link:hover {
    color: var(--ep-primary-dark);
    opacity: 0.85;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    color: #ffffff !important;
    background: var(--ep-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--ep-primary-dark);
}

.auth-btn:active {
    transform: scale(0.98);
}

/* Validation */
.field-validation-error {
    display: block;
    color: var(--ep-danger) !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.4rem;
}

/* Footer / Switch page link */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--ep-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--ep-primary-dark);
    text-decoration: underline;
}

/* Alerts styling adjustments inside auth */
.auth-card .alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
