/**
 * MAWASCO Auth Premium Design
 * Split-Screen: Animated BG Left + Glassmorphism Right
 * Primary: #2596be (MAWASCO Teal)
 */

/* ============================================
   STRICT FONT OVERRIDE
   ============================================ */
body,
html,
input,
button,
select,
textarea,
.form-control {
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif !important;
}

/* ============================================
   SPLIT-SCREEN LAYOUT
   ============================================ */
.auth-page {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   LEFT: ANIMATED HERO SECTION
   ============================================ */
.auth-hero {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    background: linear-gradient(135deg, #0d3a4a 0%, #2596be 50%, #1a6382 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating decorative circles */
.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 18s ease-in-out infinite;
}

.auth-hero::before {
    width: 350px;
    height: 350px;
    top: -80px;
    right: -80px;
}

.auth-hero::after {
    width: 250px;
    height: 250px;
    bottom: -60px;
    left: -60px;
    animation-delay: -9s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.05);
    }
}

/* Extra floating droplets */
.auth-droplet {
    position: absolute;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-radius: 50%;
    animation: dropletFloat 10s ease-in-out infinite;
}

.auth-droplet:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.auth-droplet:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 55%;
    right: 20%;
    animation-delay: -3s;
}

.auth-droplet:nth-child(3) {
    width: 35px;
    height: 35px;
    bottom: 30%;
    left: 30%;
    animation-delay: -6s;
}

@keyframes dropletFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.08);
        opacity: 1;
    }
}

/* Hero Content */
.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.auth-hero-title {
    font-family: "Outfit", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.auth-hero-title .highlight {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.auth-hero-subtitle {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2rem;
    line-height: 1.65;
    max-width: 400px;
}

.auth-hero-footer {
    font-family: "Outfit", sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RIGHT: GLASSMORPHISM FORM SECTION
   ============================================ */
.auth-form-section {
    width: 100%;
    max-width: 520px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(180deg, #1a4a5e 0%, #0d3a4a 100%);
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    /* Glassmorphism Card */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

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

.auth-logo-wrapper .auth-logo {
    max-height: 55px;
    width: auto;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.auth-form-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.625rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.375rem;
    letter-spacing: -0.01em;
}

.auth-form-subtitle {
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.auth-form-group {
    margin-bottom: 1.125rem;
}

.auth-form-group:last-of-type {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-input {
    width: 100%;
    padding: 0.8125rem 1rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.9375rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.auth-input:focus {
    outline: none;
    border-color: #2596be;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.3);
}

.auth-input:read-only {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Input Group (for password toggle) */
.auth-input-group {
    position: relative;
    display: flex;
}

.auth-input-group .auth-input {
    padding-right: 3rem;
}

.auth-input-group .toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.auth-input-group .toggle-btn:hover {
    color: #2596be;
}

/* ============================================
   HELPER ROW (Remember + Forgot)
   ============================================ */
.auth-helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2596be;
    cursor: pointer;
}

.auth-checkbox-label {
    font-family: "Outfit", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   LINKS
   ============================================ */
.auth-link {
    font-family: "Outfit", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3db8de;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #60c8e8;
    text-decoration: none;
}

/* ============================================
   BUTTONS - MAWASCO TEAL
   ============================================ */
.auth-btn {
    width: 100%;
    padding: 0.9375rem 1.5rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #2596be 0%, #1e7a9f 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 150, 190, 0.4);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2ea8d3 0%, #2596be 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 150, 190, 0.5);
}

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

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   VERIFICATION CODE INPUTS
   ============================================ */
.auth-code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.auth-code-inputs .auth-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
}

/* ============================================
   FOOTER TEXT
   ============================================ */
.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Outfit", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Timer */
.auth-timer {
    color: #3db8de;
    font-weight: 500;
}

/* ============================================
   ICON ACCENT (for headers)
   ============================================ */
.auth-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.875rem;
    background: rgba(37, 150, 190, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 150, 190, 0.3);
}

.auth-icon-wrap i {
    font-size: 1.25rem;
    color: #3db8de;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .auth-page {
        flex-direction: column-reverse;
    }

    .auth-hero {
        min-height: auto;
        padding: 2rem;
    }

    .auth-hero-title {
        font-size: 2rem;
    }

    .auth-form-section {
        max-width: 100%;
        min-width: auto;
        padding: 2rem;
        min-height: 70vh;
    }

    .auth-form-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .auth-hero {
        min-height: 30vh;
        padding: 1.5rem;
    }

    .auth-hero-title {
        font-size: 1.625rem;
    }

    .auth-hero-subtitle {
        font-size: 0.9rem;
    }

    .auth-form-section {
        padding: 1.5rem;
    }

    .auth-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .auth-form-title {
        font-size: 1.375rem;
    }

    .auth-code-inputs .auth-input {
        width: 42px;
        height: 50px;
        font-size: 1.125rem;
    }
}

/* ============================================
   MOBILE-ONLY: COMPACT HERO
   ============================================ */
@media (max-width: 768px) {
    .auth-hero {
        min-height: 25vh;
    }

    .auth-hero-subtitle {
        display: none;
    }

    .auth-form-section {
        flex: 1;
    }
}

/* ============================================
   TECH FOOTER (Technology by Digipedia)
   ============================================ */
.auth-tech-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: "Outfit", sans-serif;
}

.auth-tech-footer .tech-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #10b981;
}

.auth-tech-footer i {
    font-size: 1rem;
}

.auth-tech-footer .tech-logo {
    height: 20px;
    width: auto;
    transition: opacity 0.2s;
}

.auth-tech-footer a:hover .tech-logo {
    opacity: 0.8;
}
