:root {
    /* Brand Colors */
    --brand-primary: #4a1f2e;
    --brand-secondary: #6b2c42;
    --brand-tertiary: #824659;
    --brand-light: #a85f78;
    --brand-lighter: #c98fa3;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle Gradient Background - Light Pink with Burgundy Corner Touches */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(130, 70, 89, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(107, 44, 66, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(168, 95, 120, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(130, 70, 89, 0.23) 0%, transparent 50%),
        #fdf8f9;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
    position: relative;
}

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

.main-logo-container {
    margin-bottom: 1rem;
    animation: fadeIn 1s ease 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-logo {
    width: 150px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(16%) sepia(32%) saturate(1586%) hue-rotate(295deg) brightness(95%) contrast(88%);
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease 0.45s backwards;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease 0.5s backwards;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--brand-primary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeIn 1s ease 0.7s backwards;
}

.email-form {
    animation: fadeIn 1s ease 0.9s backwards;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #6b2c42;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(107, 44, 66, 0.3);
}

.button-icon {
    font-size: 1.25rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(26, 32, 44, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Consent Checkbox */
.consent-group {
    margin-top: 1rem;
    animation: fadeIn 1s ease 0.95s backwards;
    display: flex;
    justify-content: center;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.consent-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(107, 44, 66, 0.3);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.consent-checkbox:hover {
    border-color: var(--brand-light);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(107, 44, 66, 0.15);
}

.consent-checkbox:checked {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-tertiary) 100%);
    border-color: var(--brand-secondary);
}

.consent-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.consent-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 44, 66, 0.2);
}

.consent-text {
    font-size: 0.875rem;
    color: var(--brand-primary);
    line-height: 1.5;
    opacity: 0.9;
}

.consent-label:hover .consent-text {
    opacity: 1;
}

/* Consent Error State */
.consent-label.consent-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.consent-label.consent-error .consent-checkbox {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.consent-label.consent-error .consent-text {
    color: #e53e3e;
    opacity: 1;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-8px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(8px);
    }
}

.message {
    min-height: 24px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 300px;
    max-width: 500px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.toast.success {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.95) 0%, rgba(72, 187, 120, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toast.error {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.95) 0%, rgba(245, 101, 101, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Animation for toast entrance */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Animation for toast exit */
@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
}

/* Language Selector */
.language-selector-wrapper {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    animation: fadeIn 1s ease 0.3s backwards;
}

.language-selector {
    padding: 0.75rem 1.25rem;
    padding-right: 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(168, 95, 120, 0.3);
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    box-shadow:
        0 4px 15px rgba(107, 44, 66, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    letter-spacing: 0.02em;

    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a1f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
}

.language-selector:hover {
    border-color: var(--brand-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow:
        0 8px 25px rgba(107, 44, 66, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.language-selector:focus {
    border-color: var(--brand-secondary);
    box-shadow:
        0 8px 25px rgba(107, 44, 66, 0.3),
        0 0 0 4px rgba(107, 44, 66, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.language-selector:active {
    transform: translateY(0);
    box-shadow:
        0 4px 15px rgba(107, 44, 66, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Style the dropdown options */
.language-selector option {
    padding: 0.75rem;
    background: white;
    color: var(--brand-primary);
    font-weight: 500;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease 1.1s backwards;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b2c42;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #6b2c42;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 640px) {
    .toast {
        top: 1rem;
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }

    .consent-text {
        font-size: 0.8rem;
    }

    .consent-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .language-selector-wrapper {
        top: 1rem;
        right: 1rem;
    }

    .language-selector {
        padding: 0.625rem 1rem;
        padding-right: 2.5rem;
        font-size: 0.8rem;
        background-size: 12px;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .main-logo {
        width: 120px;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    input[type="email"],
    button {
        width: 100%;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .main-logo {
        width: 100px;
    }

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

/* Nozzle Design Element */
.nozzle-decoration {
    position: fixed;
    bottom: -5%;
    right: -5%;
    height: 40vh;
    width: auto;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nozzle-decoration {
        height: 35vh;
    }
}

@media (max-width: 480px) {
    .nozzle-decoration {
        height: 30vh;
    }
}
