/* -------------------- BASE -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #E0F7FA, #FCE4EC);
    color: #1A3F66;
    font-family: 'Poppins', sans-serif;
    opacity: 0; /* Page fade-in animation via GSAP */
    min-height: 100vh;
}

/* -------------------- TOP BAR -------------------- */
.top-bar {
    background: #1A3F66;
    color: #fff;
    padding: 25px 20px;
    margin: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.brand h2 {
    font-weight: 700;
    background: linear-gradient(45deg, #6EC1E4, #F28AB2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    font-size: 14px;
    opacity: 0.9;
}

/* -------------------- HERO SECTION -------------------- */
.hero {
    padding: 120px 20px;
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #6EC1E4, #F28AB2, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18px;
    margin-top: 10px;
    color: #5A6A85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* SaaS CTA Button Style */
.btn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.auth-btns {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.3s all;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    width: 220px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

/* Gradient buttons */
.login {
    background: linear-gradient(45deg, #FF6B35, #FF4C4C);
    color: #fff;
}
.signup {
    background: linear-gradient(45deg, #6EC1E4, #A267AC);
    color: #fff;
}
.btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* -------------------- FEATURES -------------------- */
.features {
    padding: 50px 30px;
    max-width: 1100px;
    margin: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(13,27,42,0.9);
    color: white;
    padding: 30px;
    border-radius: 18px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: 0.3s;
    opacity: 0;
    transform: translateY(50px);
}

.card h3 {
    font-weight: 600;
    background: linear-gradient(45deg, #6EC1E4, #F28AB2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.card p {
    color: #B0B0B0;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* -------------------- FOOTER -------------------- */
footer {
    background: linear-gradient(135deg, #0D1B2A, #1A3F66);
    color: white;
    padding: 30px 15px;
    margin-top: 40px;
}

.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.fcard {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.3s;
}

.fcard h3 {
    font-size: 14px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #6EC1E4, #F28AB2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fcard p {
    font-size: 12px;
    color: #B0B0B0;
}

.fcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.copyright {
    text-align: center;
    font-size: 10px;
    opacity: 0.6;
}

/* -------------------- RIPPLE EFFECT -------------------- */
@keyframes ripple {
    to {
        transform: scale(6);
        opacity: 0;
    }
}

/* ===============================
   AUTH SECTION (No Background)
================================= */
.auth-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInSection 0.8s ease forwards;
    opacity: 0;
}

/* Fade-in section animation */
@keyframes fadeInSection {
    to { opacity: 1; }
}

/* ===============================
   Dark Glass Auth Card
================================= */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 45px 35px;
    background: #1A3F66; /* header color */
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    color: white;
    text-align: center;

    /* Card slide-up + fade animation */
    transform: translateY(40px);
    opacity: 0;
    animation: cardEnter 0.9s cubic-bezier(.16,.84,.44,1) forwards;
}

@keyframes cardEnter {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===============================
   Titles
================================= */
.auth-title {
    font-size: 26px;
    margin-bottom: 8px;
    opacity: 0;
    animation: titleFade 0.8s forwards;
}

.auth-sub {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
    opacity: 0;
    animation: subFade 1s forwards;
    animation-delay: 0.3s;
}

@keyframes titleFade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subFade {
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Inputs
================================= */
.input-group {
    position: relative;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(20px);
    animation: inputFade 0.8s forwards;
}

.input-group:nth-child(3) { animation-delay: 0.3s; }
.input-group:nth-child(4) { animation-delay: 0.5s; }
.input-group:nth-child(5) { animation-delay: 0.7s; }

@keyframes inputFade {
    to { opacity: 1; transform: translateY(0); }
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #6EC1E4;
    box-shadow: 0 0 0 3px rgba(110, 193, 228, 0.2);
}

/* Floating label */
.input-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 13px;
    opacity: 0.6;
    transition: 0.3s;
    pointer-events: none;
    background: #1A3F66;
    padding: 0 4px;
}

.input-group input:focus+label,
.input-group input:valid+label {
    top: -8px;
    font-size: 11px;
    color: #6EC1E4;
}

/* ===============================
   SVG Eye
================================= */
.eye-icon {
    position: absolute;
    right: 12px;
    top: 14px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #aaa;
    transition: 0.3s;
}

.eye-icon:hover {
    fill: #6EC1E4;
}

/* ===============================
   Remember Me
================================= */
.remember-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* ===============================
   Password Rules
================================= */
.password-rules {
    text-align: left;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.password-rules span {
    display: block;
    margin-bottom: 4px;
}

/* ===============================
   Auth Buttons (Login / Signup)
================================= */
.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, #FF6B35, #FF4C4C);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: btnPop 0.8s forwards;
}

#signupBtn.auth-btn {
    background: linear-gradient(45deg, #6EC1E4, #A267AC);
}

@keyframes btnPop {
    to { opacity: 1; transform: translateY(0); }
}

.auth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

/* ===============================
   Back Button
================================= */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #6EC1E4, #F28AB2);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.back-btn:active {
    transform: scale(0.96);
}

/* =========================
   Popups
========================= */
.popup {
    position: fixed;
    top: 20px;
    right: -300px;
    padding: 14px 22px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.popup.show {
    right: 20px;
    opacity: 1;
}

.popup.success {
    background: linear-gradient(45deg, #6EC1E4, #A267AC);
}

.popup.error {
    background: linear-gradient(45deg, #FF6B35, #FF4C4C);
}

/* -------------------- MOBILE -------------------- */
@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .btn { width: 90%; }
    footer { padding: 20px 10px; }
    .fcard { padding: 10px; font-size: 12px; }
}