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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a2f4a 0%, #2c5f78 50%, #3e8ba8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    /* position: fixed; */
    /* top: 0; */
    width: 100%;
    background: rgba(26, 47, 74, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f4d03f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    border-color: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.12)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="90" cy="30" r="0.8" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInUp 1s ease 0.2s forwards;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #f4d03f;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease 0.4s forwards;
}

.hero .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInUp 1s ease 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, #f4d03f, #f7dc6f);
    color: #1a2f4a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInUp 1s ease 0.8s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 208, 63, 0.4);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    flex: 1;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(244, 208, 63, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(244, 208, 63, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f4d03f;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
footer {
    background: rgba(26, 47, 74, 0.9);
    color: #fff;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

footer p {
    opacity: 0.8;
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a2f4a 0%, #2c5f78 50%, #3e8ba8 100%);
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(244, 208, 63, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.auth-title {
    color: #f4d03f;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    /* display: block; */
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f4d03f;
    box-shadow: 0 0 0 2px rgba(244, 208, 63, 0.3);
}

.invalid-feedback {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    color: #fff;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #f4d03f, #f7dc6f);
    color: #1a2f4a;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: #fff;
}

.auth-links a {
    color: #f4d03f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Floating particles */
.particle {
    position: absolute;
    background: rgba(244, 208, 63, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 15s linear infinite;
}

.margin-top-80 {
    margin-top: 80px;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Loader CSS: include in your main stylesheet or a <style> block */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(10, 20, 30, 0.85), rgba(10, 20, 30, 0.95));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 360ms ease, visibility 360ms ease;
    opacity: 1;
    visibility: visible;
}

/* fadeout state */
#page-loader.loader--fadeout {
    opacity: 0;
    visibility: hidden;
}

/* inner wrapper */
#page-loader .loader-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* spinner size */
.spinner {
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
}

/* SVG spinner animation */
.spinner-svg {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    animation: rotate 1.2s linear infinite;
}

.spinner-svg .path {
    stroke: rgba(244, 208, 63, 0.95);
    /* gold accent */
    stroke-linecap: round;
    stroke-dasharray: 90;
    stroke-dashoffset: 60;
    animation: dash 1.2s ease-in-out infinite;
}

/* loader text */
#page-loader .loader-text {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

/* animations */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -125;
    }
}

/* small screens */
@media (max-width: 480px) {
    .spinner {
        width: 56px;
        height: 56px;
    }

    #page-loader .loader-text {
        font-size: 0.85rem;
    }
}
