/* Unified Glassmorphism Auth Theme for Gawang Liliw */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: url('liliw-front.jpg') no-repeat center center fixed;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.25rem;
    overflow-x: hidden;
}

/* Subtle dark semi-transparent overlay to preserve text contrast and asset visibility */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

/* Floating Glassmorphism Login Card */
.glass-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 24px 22px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color: #1e293b;
    animation: fadeInCard 0.4s ease-out forwards;
}

/* Wide Glass Card (for Registration - Scrollable & Responsive) */
.glass-card-wide {
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2.25rem;
    margin: 1rem 0;
}

/* Custom Scrollbar for Glass Card */
.glass-card-wide::-webkit-scrollbar {
    width: 7px;
}

.glass-card-wide::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.glass-card-wide::-webkit-scrollbar-thumb {
    background: rgba(15, 74, 168, 0.45);
    border-radius: 10px;
}

.glass-card-wide::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 74, 168, 0.75);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    text-align: center;
    margin-bottom: 1.15rem;
}

.brand-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(15, 74, 168, 0.16);
    color: #0c3e8d;
    border: 1px solid rgba(15, 74, 168, 0.25);
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f4aa8;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
    line-height: 1.2;
}

.card-header .instruction-text,
.card-header .subtitle {
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.4;
}

/* Alert Notifications */
.alert {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.35;
}

.alert-error, .alert.error {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.92);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.alert-success, .alert.success {
    color: #0c4a6e;
    background: rgba(224, 242, 254, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Form Controls & Inputs */
.input-group {
    position: relative;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b506d;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
}

.glass-input,
.input-group input,
.input-group select,
.field input:not([type="file"]),
.field select {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px 10px 14px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.input-group input,
.input-group select {
    padding-left: 42px;
}

.input-group input::placeholder,
.field input::placeholder {
    color: rgba(30, 41, 59, 0.65);
    font-weight: 400;
}

.input-group input:focus,
.input-group select:focus,
.field input:focus,
.field select:focus {
    background: rgba(255, 255, 255, 0.82);
    border-color: #0f4aa8;
    box-shadow: 0 0 0 3px rgba(15, 74, 168, 0.22);
}

.input-group:focus-within .input-icon {
    color: #0f4aa8;
}

/* Real-Time Field Validation States */
.field input.is-valid,
.input-group input.is-valid {
    border-color: #16a34a !important;
    background: rgba(240, 253, 244, 0.75) !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.20) !important;
}

.field input.is-invalid,
.input-group input.is-invalid {
    border-color: #dc2626 !important;
    background: rgba(254, 242, 242, 0.80) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.20) !important;
}

.field-error {
    font-size: 11.5px;
    color: #dc2626;
    font-weight: 600;
    display: none;
    margin-top: 3px;
    line-height: 1.3;
}

.field-error.show {
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-success {
    font-size: 11.5px;
    color: #16a34a;
    font-weight: 600;
    display: none;
    margin-top: 3px;
    line-height: 1.3;
}

.field-success.show {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Field Header with Character Counter */
.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter {
    font-size: 11px;
    font-weight: 600;
    color: #4b6282;
    transition: color 0.2s ease;
}

.char-counter.limit-reached {
    color: #dc2626;
    font-weight: 700;
}

/* Password Input Wrapper with Toggle Icon */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 42px !important;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 6px;
    min-height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-wrapper .toggle-password:hover {
    color: #0f4aa8;
}

/* Interactive Password Strength Meter */
.strength-meter {
    margin-top: 6px;
    margin-bottom: 4px;
}

.strength-bar-track {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    gap: 4px;
}

.strength-segment {
    flex: 1;
    height: 100%;
    background: transparent;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #2b3a4a;
    margin-top: 3px;
    font-weight: 600;
}

/* Password Criteria Checklist */
.password-criteria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    margin-top: 5px;
    font-size: 11px;
    color: #4b6282;
}

.criteria-item {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.criteria-item.met {
    color: #15803d;
    font-weight: 600;
}

.criteria-item.unmet {
    color: #64748b;
}

/* Primary Action Button */
.btn-primary {
    width: 100%;
    min-height: 44px;
    padding: 11px;
    background: #0f4aa8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 74, 168, 0.35);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.btn-primary:hover:not(:disabled) {
    background: #0c3e8d;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 74, 168, 0.45);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 74, 168, 0.3);
}

.btn-primary:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner for Button Loading State */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.75s linear infinite;
    margin-right: 8px;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Registration Grid & Fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 13px 14px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e3a66;
    letter-spacing: 0.2px;
}

.full-width {
    grid-column: 1 / -1;
}

.upload-card {
    background: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(15, 74, 168, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.upload-card:hover,
.upload-card:focus-within {
    background: rgba(255, 255, 255, 0.58);
    border-color: #0f4aa8;
}

.upload-card.has-error {
    border-color: #dc2626 !important;
    background: rgba(254, 242, 242, 0.75) !important;
}

.upload-card.is-valid {
    border-color: #16a34a !important;
    background: rgba(240, 253, 244, 0.75) !important;
}

.upload-card input[type="file"] {
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 12.5px;
    color: #1e293b;
    cursor: pointer;
    width: 100%;
    outline: none;
}

.upload-hint {
    display: block;
    font-size: 11px;
    color: #3b506d;
    margin-top: 2px;
    font-weight: 500;
}

/* Links & Typography */
.links-container {
    margin-top: 12px;
}

.forgot-link {
    text-align: right;
    margin-bottom: 10px;
}

.forgot-link a,
.back-link a,
.login-link a {
    text-decoration: none;
    color: #0d3b82;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-link a:hover,
.back-link a:hover,
.login-link a:hover {
    color: #061c40;
    text-decoration: underline;
}

.back-link,
.login-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

.login-link a {
    color: #0f4aa8;
    font-weight: 700;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0;
    color: rgba(30, 41, 59, 0.6);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.divider span {
    padding: 0 8px;
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
}

.register-link {
    text-align: center;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

.register-link a {
    text-decoration: none;
    color: #0f4aa8;
    font-weight: 700;
    transition: all 0.2s ease;
}

.register-link a:hover {
    color: #082d69;
    text-decoration: underline;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0.75rem;
    }

    .glass-card-wide {
        width: 100%;
        max-height: 92vh;
        padding: 1.5rem 1.15rem;
        margin: 0.5rem 0;
        border-radius: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .password-criteria {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glass-card {
        width: 95%;
        padding: 1.5rem 1.15rem;
        border-radius: 14px;
    }

    .card-header h2 {
        font-size: 1.35rem;
    }

    .card-header .instruction-text,
    .card-header .subtitle {
        font-size: 0.78rem;
    }
}

/* ========================================================
   INSTITUTIONAL PORTAL DESIGN (University / Enterprise LMS Style)
   Unified Branded Backdrop with Floating High-Contrast White Card
   ======================================================== */
body.portal-body {
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    background: radial-gradient(circle at top left, #1d4ed8, #1e3a8a, #0f172a) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-family: 'Poppins', sans-serif;
}

body.portal-body::before {
    display: none !important;
}

/* Liliw Artisan / Tsinelas Craft Watermark Backdrop (Left Branding Area) */
.portal-watermark-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    max-width: 950px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12 !important;
    mix-blend-mode: overlay;
    mask-image: radial-gradient(ellipse at 42% 50%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 42% 50%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
}

.portal-texture-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1;
    display: block;
}

.portal-texture-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 45% 50%, rgba(30, 64, 175, 0.25) 0%, rgba(15, 23, 42, 0.6) 60%, #0f172a 100%);
    mix-blend-mode: multiply;
}

/* Radial Glow Behind Brand Logo */
.portal-brand-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(37, 99, 235, 0.08) 55%, transparent 75%);
    filter: blur(45px);
    z-index: 0;
    pointer-events: none;
}

/* Main Outer Canvas Container */
.portal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1260px;
    min-height: 100vh;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    margin: 0 auto;
}

/* Left Column: Official Branding Canvas (Desktop) */
.portal-brand-col {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.portal-seal-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 2.25rem;
}

.portal-seal-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48), 0 0 0 8px rgba(255, 255, 255, 0.16);
    background: #ffffff;
    display: block;
    transition: transform 0.3s ease;
}

.portal-seal-img:hover {
    transform: scale(1.03);
}

.portal-brand-name {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.portal-brand-sub {
    font-size: 1.25rem;
    font-weight: 500;
    color: #dbeafe !important;
    margin-bottom: 1.15rem;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.portal-brand-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #93c5fd !important;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* Right Column: Floating Crisp White Card (Tall iLearnU Style) */
.portal-card-col {
    flex: 0 0 510px;
    max-width: 510px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.portal-login-card {
    background: #ffffff;
    border-radius: 34px;
    padding: 3.75rem 3.25rem 3rem;
    width: 100%;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 75px -15px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    animation: portalFadeIn 0.35s ease-out forwards;
}

@keyframes portalFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.portal-card-header h2 {
    font-size: 2.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.portal-card-header .brand-highlight {
    color: #2563eb;
    font-weight: 800;
}

.portal-card-header .portal-card-desc {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 0;
}

/* Form & Inputs */
.portal-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.portal-form .input-group {
    margin-bottom: 1.45rem;
    position: relative;
}

.portal-form .input-group input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    height: 56px;
    padding: 14px 20px 14px 52px;
    font-size: 15.5px;
    color: #0f172a;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.portal-form .input-group input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.portal-form .input-group .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.portal-form .input-group:focus-within .input-icon {
    color: #2563eb;
}

.portal-form .input-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.portal-form .input-group .toggle-password:hover {
    color: #1e293b;
}

/* Submit Button: Solid Vibrant Blue (iLearnU Style) */
.btn-portal-submit {
    width: 100%;
    min-height: 58px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
}

.btn-portal-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.48);
}

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

/* Bottom Actions & Footer Links */
.portal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.btn-recover-account {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.btn-recover-account:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

.link-register-seller {
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-register-seller:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS (Mobile Collapsing)
   ======================================================== */
@media (max-width: 900px) {
    .portal-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1.25rem;
        min-height: 100vh;
    }

    .portal-brand-col {
        flex: 0 0 auto;
        padding: 0;
        margin-bottom: 0.25rem;
    }

    .portal-seal-img {
        width: 86px;
        height: 86px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.2);
    }

    .portal-seal-wrap {
        margin-bottom: 0.75rem;
    }

    .portal-brand-name {
        font-size: 1.45rem;
        margin-bottom: 0.2rem;
    }

    .portal-brand-sub {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .portal-brand-tagline {
        display: none;
    }

    .portal-card-col {
        flex: 0 0 auto;
        max-width: 440px;
        width: 100%;
    }

    .portal-login-card {
        padding: 2.25rem 1.6rem;
        border-radius: 20px;
        min-height: auto;
    }

    .portal-watermark-texture {
        width: 100%;
        max-width: 100%;
        height: 48%;
        mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.75) 0%, transparent 72%);
        -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.75) 0%, transparent 72%);
    }
}

@media (max-width: 480px) {
    .portal-container {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .portal-seal-img {
        width: 72px;
        height: 72px;
    }

    .portal-brand-name {
        font-size: 1.3rem;
    }

    .portal-card-header h2 {
        font-size: 1.45rem;
    }

    .portal-login-card {
        padding: 1.65rem 1.2rem;
    }

    .portal-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
}

/* ========================================================
   ACCOUNT RECOVERY MODAL (iLearnU Style Popup)
   ======================================================== */
.recovery-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalBackdropFade 0.2s ease-out forwards;
}

@keyframes modalBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.recovery-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalBoxPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalBoxPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.recovery-modal-header {
    background: #2563eb;
    color: #ffffff;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recovery-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.recovery-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.recovery-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.recovery-modal-body {
    padding: 24px 24px 28px;
}

.recovery-reminder-notice {
    font-size: 12.5px;
    font-style: italic;
    color: #b91c1c;
    background: #fef2f2;
    border-left: 3.5px solid #ef4444;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.recovery-reminder-notice .reminder-label {
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    margin-right: 4px;
}

.recovery-modal-body select {
    width: 100%;
    height: 46px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px 10px 42px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.recovery-modal-body select:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ========================================================
   SELLER REGISTRATION PORTAL CARD
   ======================================================== */
.portal-register-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.portal-register-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.75rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    color: #0f172a;
    animation: portalFadeIn 0.35s ease-out forwards;
}

.portal-register-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.portal-register-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: #ffffff;
    display: inline-block;
    margin-bottom: 12px;
}

.portal-register-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.portal-register-header .portal-card-desc {
    font-size: 0.9rem;
    color: #64748b;
}

.portal-register-card .field label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.portal-register-card .field input:not([type="file"]),
.portal-register-card .field select {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    height: 44px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.portal-register-card .field input:not([type="file"]):focus,
.portal-register-card .field select:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.portal-register-card .upload-card {
    background: #f8fafc;
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.portal-register-card .upload-card:hover,
.portal-register-card .upload-card:focus-within {
    background: #f1f5f9;
    border-color: #2563eb;
}

.portal-register-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 13.5px;
    color: #64748b;
}

.portal-register-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.portal-register-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .portal-register-container {
        margin: 1.5rem auto;
        padding: 0 0.75rem;
    }

    .portal-register-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .portal-register-header h2 {
        font-size: 1.5rem;
    }
}

/* ========================================================
   RESET PASSWORD PORTAL CARD
   ======================================================== */
.portal-reset-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-reset-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2.25rem 2rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    color: #0f172a;
    animation: portalFadeIn 0.35s ease-out forwards;
    position: relative;
}

.reset-icon-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #eff6ff;
    border: 2px solid #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
}

.reset-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.reset-card-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.reset-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
    max-width: 100%;
    word-break: break-all;
}

.reset-account-pill svg {
    color: #2563eb;
    flex-shrink: 0;
}

.reset-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.otp-input-field {
    width: 100%;
    height: 52px;
    text-align: center;
    letter-spacing: 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-input-field:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 1.25rem;
    padding: 0 2px;
}

.btn-resend-otp {
    background: none;
    border: none;
    padding: 0;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-resend-otp:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.password-input-group .input-icon-left {
    position: absolute;
    left: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.password-input-group input {
    width: 100%;
    height: 46px;
    padding: 10px 42px 10px 42px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.password-input-group:focus-within .input-icon-left {
    color: #2563eb;
}

.password-input-group input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.password-input-group .toggle-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.password-input-group .toggle-eye-btn:hover {
    color: #1e293b;
}

.password-hint-text {
    font-size: 11.5px;
    color: #64748b;
    margin-top: -8px;
    margin-bottom: 12px;
    padding-left: 2px;
}

.reset-footer-nav {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.reset-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reset-back-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .portal-reset-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .reset-card-header h2 {
        font-size: 1.4rem;
    }
}

/* ========================================================
   OTP VERIFICATION 6-BOX STYLING
   ======================================================== */
.otp-boxes-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 1.75rem 0 1.25rem;
}

.otp-box-digit {
    width: 54px;
    height: 64px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-box-digit:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

@media (max-width: 420px) {
    .otp-boxes-grid {
        gap: 6px;
    }
    .otp-box-digit {
        width: 44px;
        height: 54px;
        font-size: 22px;
        border-radius: 10px;
    }
}




