/*
 * ====================================================================
 *                    GIGCCL ADMISSION PORTAL
 *              Shared Auth Form Styles (Login/Signup/Reset)
 * ====================================================================
 *  Standalone pages that don't use the shared header/footer.
 * ====================================================================
 */

/* ============================================================
   AUTH PAGE BASE LAYOUT
============================================================ */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #FDFDFB, #f4efe9, #e6ddd5);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   AUTH CARD
============================================================ */
.auth-container {
    width: 100%;
    max-width: 28rem;
}

.auth-container.animate-fade-up {
    animation: fadeUp 0.7s cubic-bezier(.4,0,.2,1) both;
}

/* Logo Header */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 4rem;
    width: 4rem;
    border-radius: 9999px;
    border: 4px solid var(--color-primary, #6B4F48);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    margin: 0 auto 0.75rem;
    object-fit: cover;
}

.auth-logo h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary, #6B4F48);
    letter-spacing: 0.025em;
}

.auth-logo p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Card Container */
.auth-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

/* Card Header */
.auth-card-header {
    background-color: var(--color-primary, #6B4F48);
    padding: 1.25rem 2rem;
}

.auth-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.auth-card-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Card Body */
.auth-card-body {
    padding: 1.75rem 2rem;
}

/* ============================================================
   AUTH FORM INPUTS
============================================================ */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.auth-form label .required {
    color: #ef4444;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #fff;
    outline: none;
}

.auth-form input:hover,
.auth-form textarea:hover {
    border-color: var(--color-primary-light, #A98C82);
}

.auth-form input:focus,
.auth-form textarea:focus {
    border-color: var(--color-primary, #6B4F48);
    box-shadow: 0 0 0 3px rgba(107, 79, 72, 0.15);
}

/* Password field with toggle button */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--color-primary, #6B4F48);
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================================
   AUTH FORM BUTTONS
============================================================ */
.auth-submit {
    width: 100%;
    background-color: var(--color-primary, #6B4F48);
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.auth-submit:hover {
    background-color: var(--color-primary-dark, #5a423c);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.auth-submit:active {
    transform: scale(0.95);
}

.auth-submit svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================================
   AUTH LINKS & FOOTER
============================================================ */
.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer a {
    color: var(--color-primary, #6B4F48);
    font-weight: 700;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-back {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.auth-back:hover {
    color: var(--color-primary, #6B4F48);
}

/* ============================================================
   AUTH ALERTS
============================================================ */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.auth-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ============================================================
   PASSWORD STRENGTH INDICATOR
============================================================ */
.strength-bars {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: #e5e7eb;
    transition: background 0.3s;
}

.strength-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ============================================================
   SUCCESS STATE (icon circle)
============================================================ */
.auth-success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-success-icon.green {
    background-color: #dcfce7;
}

.auth-success-icon.red {
    background-color: #fee2e2;
}

.auth-success-icon svg {
    width: 2rem;
    height: 2rem;
}

/* ============================================================
   MISC
============================================================ */
.forgot-link {
    font-size: 0.75rem;
    color: var(--color-primary, #6B4F48);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.admin-link {
    margin-top: 1.5rem;
    text-align: center;
}

.admin-link p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.admin-link a {
    color: var(--color-primary, #6B4F48);
    font-weight: 600;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* ============================================================
   ANIMATION (same as main)
============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
