/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: hsl(248, 78%, 66%);
    --primary-dark: hsl(270, 36%, 46%);
    --white: hsl(0, 0%, 100%);
    --gray-50: hsl(210, 40%, 98%);
    --gray-100: hsl(210, 40%, 96.1%);
    --gray-300: hsl(214.3, 31.8%, 91.4%);
    --gray-600: hsl(215.4, 16.3%, 46.9%);
    --gray-900: hsl(222.2, 84%, 4.9%);
    
    --gradient-primary: linear-gradient(135deg, hsl(248, 78%, 66%) 0%, hsl(270, 36%, 46%) 100%);
    
    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.status-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(12px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary .btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

/* Form Pages */
.page-container {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.form-wrapper {
    width: 100%;
    max-width: 28rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    padding: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--gray-600);
    font-size: 0.875rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.footer-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error,
.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    max-width: 420px;
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-content {
        padding: 1rem 0;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .form-card {
        padding: 1.5rem;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 2rem 1rem;
    }
}