:root {
    --color-bg: #F5F2EB;
    --color-surface: rgba(255, 255, 255, 0.7);
    --color-primary: #456A50;
    --color-accent: #DDAE53;
    --color-text: #2C2A28;
    --color-text-muted: #6b665c;
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background Pattern & Watermark Logo */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.08;
    z-index: 1;
}

.bg-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
}

.bg-logo {
    width: 100%;
    max-width: 1800px;
    fill: var(--color-primary);
    filter: drop-shadow(0 0 20px var(--color-primary));
}

/* Login Wrapper & Card */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
}

.login-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(69, 106, 80, 0.2);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(69, 106, 80, 0.15),
                0 0 40px rgba(69, 106, 80, 0.05) inset;
    animation: float 6s ease-in-out infinite;
}

.glow-sphere {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.logo-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 3rem;
}

.header-logo {
    height: 40px;
    fill: var(--color-text);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(44, 42, 40, 0.1));
}

.logo-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 15px rgba(44, 42, 40, 0.05);
}

.logo-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 85%;
    margin: 0 auto;
}

/* Login Button */
.btn-login {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(69, 106, 80, 0.1), rgba(221, 174, 83, 0.05));
    border: 1px solid rgba(221, 174, 83, 0.5);
    border-radius: 12px;
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow: hidden;
    transition: var(--transition);
    z-index: 2;
}

.btn-login span {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(221, 174, 83, 0.3);
}

.btn-login:hover {
    background: rgba(221, 174, 83, 0.1);
    box-shadow: 0 0 25px rgba(221, 174, 83, 0.3), 
                inset 0 0 20px rgba(221, 174, 83, 0.15);
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(221, 174, 83, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: 1;
}

.btn-login:hover .btn-glow {
    left: 100%;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.btn-login.loading {
    background: rgba(69, 106, 80, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
    pointer-events: none;
}

.btn-login.success {
    background: rgba(221, 174, 83, 0.2);
    border-color: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 0 30px rgba(221, 174, 83, 0.3);
}

.hosted-by {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.hosted-by p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.hosted-by svg {
    height: 24px;
    width: auto;
}
