/* Modern Reset & Base Variable Styles */
:root {
    --bg-primary: #070a13;
    --bg-card: rgba(15, 22, 42, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --danger: #ef4444;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Beautiful Animated Background Glows */
.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.4;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6366f1 0%, #312e81 100%);
    top: -100px;
    right: -50px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7 0%, #581c87 100%);
    bottom: -150px;
    left: -100px;
    animation-delay: -6s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 40px) scale(1.15);
    }
}

/* Main Container Layout */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Design */
.app-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.icon-wrapper {
    background: var(--accent-gradient);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
    font-size: 1.5rem;
}

.logo-area h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Sponsor Cards Layout */
.sponsor-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 680px;
    width: 100%;
    margin: 0 auto 2.5rem auto;
}

.sponsor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.sponsor-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.sponsor-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px var(--accent-glow);
    flex-shrink: 0;
}

.sponsor-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.sponsor-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sponsor-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.3;
}

/* Grid Layout */
.generator-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Glass Card Styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header i {
    color: #a855f7;
    font-size: 1.25rem;
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

/* Input Fields and Labels */
.control-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-label i {
    font-size: 0.85rem;
    opacity: 0.7;
}

input[type="url"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="url"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Custom Grid for Colors and Side-by-side elements */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Color Picker Styling */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.color-picker-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.color-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.color-value {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* File Upload Area */
.section-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0 1.25rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.section-divider span {
    padding: 0 0.75rem;
}

.upload-area {
    border: 2px dashed rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.03);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-2px);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    display: block;
}

.upload-text {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.upload-text .highlight {
    color: #a855f7;
    font-weight: 600;
}

.upload-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

/* Logo status bar */
.logo-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    transition: var(--transition);
}

.logo-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-remove-logo {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-logo:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* Slider Controls */
.slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Custom Toggle Switch */
.toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-wrapper input:checked + .toggle-slider {
    background: var(--accent-gradient);
}

.toggle-wrapper input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--accent);
}

.toggle-wrapper input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Dropdown styling */
select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

select option {
    background: #0f172a;
    color: var(--text-primary);
}

/* Preview Side */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 2rem;
}

.qr-display-container {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
}

.qr-wrapper {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.qr-wrapper:hover {
    transform: scale(1.02);
}

#qr-canvas {
    max-width: 250px;
    max-height: 250px;
    width: 100%;
    height: 100%;
    display: block;
}

.qr-placeholder {
    position: absolute;
    font-size: 2.5rem;
    color: var(--accent);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.scan-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.scan-hint i {
    font-size: 0.95rem;
}

/* Utility hidden state */
.hidden {
    display: none !important;
}

/* QR Tabs Layout */
.qr-tabs-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
    scrollbar-width: none; /* Hide standard scrollbar in Firefox */
}

.qr-tabs-container::-webkit-scrollbar {
    display: none; /* Hide standard scrollbar in Chrome/Safari */
}

.qr-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 76px;
}

.qr-tab i {
    font-size: 1.15rem;
}

.qr-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.qr-tab.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Forms Content animations & fields */
.qr-form-containers {
    position: relative;
    margin-bottom: 1.75rem;
}

.qr-form-content {
    animation: fadeIn 0.4s ease-out;
}

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

textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Checkbox alignment and custom look */
.checkbox-container {
    margin-top: 0.5rem;
}

.toggle-control-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.toggle-control-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box {
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.toggle-control-label:hover .checkbox-box {
    border-color: var(--accent);
}

.toggle-control-label input:checked ~ .checkbox-box {
    background: var(--accent-gradient);
    border-color: transparent;
}

.checkbox-box:after {
    content: "";
    position: absolute;
    display: none;
}

.toggle-control-label input:checked ~ .checkbox-box:after {
    display: block;
}

.toggle-control-label .checkbox-box:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Make sure basic inputs in qr-form-content match layout */
.qr-form-content input[type="text"],
.qr-form-content input[type="password"],
.qr-form-content input[type="email"],
.qr-form-content input[type="tel"],
.advanced-section input[type="text"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.qr-form-content input[type="text"]:focus,
.qr-form-content input[type="password"]:focus,
.qr-form-content input[type="email"]:focus,
.qr-form-content input[type="tel"]:focus,
.advanced-section input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* User Status Bar & Badges */
.user-status-bar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.glass-card-lite {
    background: rgba(15, 22, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1.25rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-card-lite:hover {
    background: rgba(15, 22, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px var(--accent-glow);
}

.unauthenticated .user-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    box-shadow: none;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-welcome {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-logout {
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.btn-logout:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* Auth Modal Overlay & Content */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 5, 12, 0.85); /* Darker backdrop */
    backdrop-filter: blur(20px); /* Deeper blur */
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    animation: fadeInBg 0.3s ease-out;
}

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

.modal-content {
    width: 90%;
    max-width: 440px;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    position: relative;
    background: rgba(10, 15, 30, 0.8); /* Richer translucent dark background */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Pronounced border */
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(99, 102, 241, 0.15); /* Premium indigo outer glow */
    animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.modal-icon-wrapper {
    background: var(--accent-gradient);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px var(--accent-glow);
    color: white;
    font-size: 1.25rem;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}



.auth-form input[type="email"],
.auth-form input[type="password"] {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: var(--transition) !important;
    padding: 1.1rem 1.25rem !important;
    font-size: 1.1rem !important;
    border-radius: var(--radius-md) !important;
    color: #ffffff !important; /* Pure white text color */
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

.btn-block {
    width: 100%;
    margin-top: 0.75rem;
}

/* Submit Button Icon Animation */
.auth-form button[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
}

.auth-form button[type="submit"] i {
    transition: transform 0.3s ease;
}

.auth-form button[type="submit"]:hover i {
    transform: translateX(4px);
}

.auth-switch {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.85rem;
    transition: var(--transition);
    text-shadow: 0 0 8px var(--accent-glow);
}

.btn-link:hover {
    color: #a855f7;
}

/* Consent Text for Register */
.consent-legend {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.15rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.consent-legend i {
    color: #a855f7;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}

.consent-legend strong {
    color: white;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

/* Error Alerts inside modal */
.auth-error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.25rem;
    text-align: left;
}

/* Footer Section */
.app-footer {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-terms {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-terms a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.footer-terms a:hover {
    color: #a855f7;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        position: static;
    }
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .app-container {
        padding: 1.5rem 1rem;
    }
    
    .logo-area h1 {
        font-size: 2rem;
    }

    .sponsor-cards-container {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
        gap: 0.85rem;
    }
    
    .user-status-bar {
        position: static;
        margin: 0 auto 1.5rem auto;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 320px;
    }
}
