/* Project Liberté QR Coin Page Styles */

/* Base Styles */
:root {
    --primary: #3a86ff;
    --primary-dark: #2563eb;
    --secondary: #00e5ff;
    --accent: #7e57c2;
    --dark: #121212;
    --dark-blue: #1a202c;
    --light-text: #e2e8f0;
    --grey: #718096;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark);
    color: var(--light-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mono {
    font-family: 'Roboto Mono', monospace;
}

/* Section Styles */
section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

section.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Intro Screen */
.intro-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 600px;
    animation: fadeIn 1.5s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(58, 134, 255, 0.8));
}

.intro-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(58, 134, 255, 0.3);
}

.intro-title span {
    color: var(--light-text);
}

.intro-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--light-text);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.intro-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.secure-badge {
    display: flex;
    align-items: center;
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.secure-badge i {
    margin-right: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.7);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary i {
    margin-left: 0.5rem;
}

/* Access Form */
.form-container {
    background-color: rgba(26, 32, 44, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 40px rgba(58, 134, 255, 0.2);
    border: 1px solid rgba(58, 134, 255, 0.2);
    position: relative;
    z-index: 2;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary), transparent, var(--secondary));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 3s infinite alternate;
}

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

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-header p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(113, 128, 150, 0.3);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    border: 2px solid var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    color: var(--grey);
    transition: all 0.3s ease;
}

.progress-step.active .step-indicator {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed .step-indicator {
    background-color: var(--success);
    border-color: var(--success);
}

.progress-step.completed .step-label {
    color: var(--success);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--light-text);
    background-color: transparent;
    border: none;
    outline: none;
    font-family: 'Roboto Mono', monospace;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: var(--grey);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group .input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--grey);
    transition: all 0.3s ease;
}

.form-group .input-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -20px;
    font-size: 0.875rem;
    color: var(--primary);
}

.form-group input:focus ~ .input-border::after,
.form-group input:valid ~ .input-border::after {
    width: 100%;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 0.5rem;
}

.secure-indicator {
    position: absolute;
    right: 0;
    top: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--success);
}

.secure-indicator i {
    margin-right: 0.25rem;
}

/* Form Navigation */
.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-prev {
    background-color: transparent;
    color: var(--grey);
    border: 1px solid var(--grey);
}

.btn-prev:hover {
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(58, 134, 255, 0.3);
}

.btn-next:hover {
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(58, 134, 255, 0.3);
    position: relative;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.5);
    transform: translateY(-2px);
}

.btn-submit .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-submit.loading span {
    opacity: 0;
}

.btn-submit.loading .loader {
    display: block;
}

.btn-prev i,
.btn-next i {
    margin: 0 0.25rem;
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--grey);
}

.badge i {
    margin-right: 0.25rem;
    color: var(--success);
}

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

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

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-subtitle {
        font-size: 1.25rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }
    
    .step-label {
        display: none;
    }
    
    .form-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
