/* Root Variables */
:root {
    --primary-font: 'Petrona', serif;
    --flow-speed: 95s;
    --primary-bg-color: #4a2b2b;
    --secondary-bg-color: #876767;
    --card-bg-color: rgba(255, 255, 255, 0.9);
    --text-color: #000;
    --input-border-color: #d1d5db;
    --input-border-focus-color: #6b7280;
    --button-bg-color: #9ca3af;
    --button-hover-bg-color: #6b7280;
    --card-shadow-color: rgba(31, 38, 135, 0.37);
}


.petrona-<uniquifier> {
  font-family: "Petrona", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-bg-color) 0%, var(--secondary-bg-color) 100%);
    font-family: var(--primary-font);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Flowing Text Animation */
.flowing-text {
    position: absolute;
    white-space: nowrap;
    animation: flowText var(--flow-speed) linear infinite;
    opacity: 0.3;
    color: var(--text-color);
    font-size: 1.5rem;
    z-index: 1;
}

@keyframes flowText {
    0% {
        transform: translateX(100vw) rotate(10deg);
    }
    100% {
        transform: translateX(-100%) rotate(10deg);
    }
}

/* Main Card Styles */
.card {
    backdrop-filter: blur(10px);
    background: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 var(--card-shadow-color);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    margin: 1rem;
    z-index: 2;
}


/* Form Elements */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"] {
    width: 90%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Petrona", serif;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    width: 100%;
    outline: none;
    border-color: var(--input-border-focus-color);
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--button-bg-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Petrona", serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background: var(--button-hover-bg-color);
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: 95%;
        padding: 1.5rem;
    }

    .font-control {
        top: 10px;
        right: 10px;
    }

    h1 {
        font-size: 1.25rem;
    }

    .flowing-text {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/Error States */
.success {
    border-color: #10B981;
}

.error {
    border-color: #EF4444;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.relative {
    position: relative;
}
