/* 
   glowbrew Landing Page Style System
   Theme: Luxury, Wellness, Soft Beauty (Warm Rose and Cream Champagne)
*/

:root {
    /* Color Palette */
    --primary: #c66f7a;
    --primary-hover: #b35d68;
    --primary-light: #fae8eb;
    --bg-main: #fbf9f7;
    --bg-card: rgba(255, 255, 255, 0.65);
    --text-main: #3d2b2d;
    --text-muted: #7d686b;
    --border-color: rgba(198, 111, 122, 0.15);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions & Shadow */
    --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 50px rgba(61, 43, 45, 0.03), 
                      0 1px 3px rgba(198, 111, 122, 0.02);
}

/* Base resets & document setups */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-image: url('hg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-main); /* fallback */
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add a very subtle overlay on top of the background image to ensure text readability if the image is too busy */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(251, 249, 247, 0.2); /* 20% overlay using our main warm cream color */
    z-index: -1;
    pointer-events: none;
}

/* Background animated glow orbs */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-bubble-1 {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(250, 232, 235, 0.6) 0%, rgba(250, 232, 235, 0) 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    animation: float-glow-1 22s infinite alternate ease-in-out;
}

.glow-bubble-2 {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(198, 111, 122, 0.08) 0%, rgba(198, 111, 122, 0) 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    filter: blur(60px);
    animation: float-glow-2 18s infinite alternate ease-in-out;
}

.glow-center {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(244, 239, 235, 0) 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -2;
}

@keyframes float-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-120px, 60px) scale(1.1); }
}

@keyframes float-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(90px, -70px) scale(1.12); }
}

/* Container & Layout */
.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Glassmorphism content container */
.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 4rem 3.5rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    margin: auto 0;
    opacity: 0;
    transform: translateY(24px);
    animation: card-appear 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Logo Section */
.logo-container {
    margin-bottom: 2.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 320px;
    height: auto;
    /* Softly blends the logo's background color in case it has any faint border or backing */
    mix-blend-mode: multiply;
    animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* Typography styles */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fade-in 1s ease-out 0.2s forwards;
}

.title {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.015em;
    opacity: 0;
    animation: fade-in 1s ease-out 0.4s forwards;
}

.description {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 2.75rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fade-in 1s ease-out 0.6s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Interactive Input Form */
.signup-form {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    opacity: 0;
    animation: fade-in 1s ease-out 0.8s forwards;
    transition: var(--transition-smooth);
}

.input-group {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.4rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(198, 111, 122, 0.015);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(198, 111, 122, 0.12);
    transform: translateY(-2px);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.input-group input::placeholder {
    color: #a89295;
    font-weight: 300;
}

.input-group button {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 0.8rem 1.85rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.input-group button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(198, 111, 122, 0.22);
}

.input-group button:active {
    transform: scale(0.97);
}

.input-group button svg {
    transition: var(--transition-smooth);
}

.input-group button:hover svg {
    transform: translateX(4px);
}

/* Form success animation states */
.success-message {
    margin-top: 1.25rem;
    color: #3b7454;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.signup-form.submitted .input-group {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* Button Loading Spinner */
.input-group button.loading span {
    opacity: 0;
}

.input-group button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Adaptive Layouts */
@media (max-width: 640px) {
    .content-card {
        padding: 3rem 1.75rem;
        border-radius: 24px;
    }
    
    .title {
        font-size: 1.85rem;
    }
    
    .description {
        margin-bottom: 2.25rem;
        font-size: 0.95rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 0.75rem;
        padding: 0;
    }
    
    .input-group input {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 50px;
        padding: 1rem 1.4rem;
        font-size: 0.95rem;
    }
    
    .input-group button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-radius: 50px;
        font-size: 0.95rem;
    }
    
    .input-group:focus-within {
        transform: none;
        box-shadow: none;
    }
    
    .logo {
        max-width: 250px;
    }
}
