/* ============================================================
   VMS STUDENT PORTAL - AUTH SYSTEM STYLES
   Used by index.php, login.php, and register.php
   Theme: Light Sky Blue + Gold Accents
============================================================ */

:root {
    --primary: #0ea5e9; /* Sky Blue */
    --primary-hover: #0284c7; /* Darker Sky Blue */
    --accent: #C5A551; /* Gold */
    --accent-hover: #b39243;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); /* Richer sky blue gradient */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    color: #0f172a;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Container & Cards */
.portal-container {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: transparent;
}

.register-card {
    width: 100%;
    max-width: 820px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: transparent;
}

@media (max-width: 768px) {
    .register-card {
        margin: 10px 0;
    }
}

.form-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 25px;
}

@media (max-width: 768px) {
    .form-grid-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Logo & Branding */
.logo-wrapper {
    background: #ffffff;
    border: 1.5px solid rgba(14, 165, 233, 0.15);
    padding: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.08);
}

.logo-img {
    height: 80px;
    width: auto;
}

.title-group, .brand-header {
    text-align: center;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.portal-title {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-card .portal-title {
    font-size: 1.75rem;
    margin: 0 0 3px;
}

.portal-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card .portal-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.portal-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.form-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i,
.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 17px;
    height: 17px;
    pointer-events: none;
}

.form-input {
    padding: 11px 16px 11px 40px;
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #0f172a;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.portal-btn {
    width: 100%;
    padding: 16px 25px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-card .portal-btn {
    padding: 14px 25px;
    font-size: 0.98rem;
    border-radius: 10px;
}

.btn-signup {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(197, 165, 81, 0.25);
}

.btn-signup:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(197, 165, 81, 0.35);
}

.btn-login, .btn-submit {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-login:hover, .btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.35);
}

.btn-submit {
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Links & Help */
.back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    margin-top: 10px;
}

.login-card .back-link {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
}

.back-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Alerts */
.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(153, 27, 27, 0.02);
}

/* Account Assistance / Recovery Options Box */
.recovery-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: 12px;
    box-sizing: border-box;
}

.recovery-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--font-body);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    white-space: nowrap;
}

.recovery-pill i,
.recovery-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.recovery-pill:hover i,
.recovery-pill:hover svg {
    transform: scale(1.15);
}

/* Forgot Username Pill Button */
.btn-forgot-user {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-forgot-user:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Forgot Password Pill Button */
.btn-forgot-pass {
    background: rgba(14, 165, 233, 0.08);
    border: 1.5px solid #0ea5e9;
    color: #0284c7;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.08);
}

.btn-forgot-pass:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

@media (max-width: 480px) {
    .portal-title {
        font-size: 1.75rem;
    }
    .portal-subtitle {
        font-size: 0.9rem;
    }
    .portal-description {
        font-size: 0.88rem;
    }
    body {
        padding: 30px 15px;
    }
    .recovery-box {
        flex-direction: column;
        gap: 8px;
    }
    .recovery-pill {
        width: 100%;
    }
}
