/**
 * Landing Page Styles
 * Gate/passcode form and welcome section styling
 */

/* Gate Section */
.gate-section {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.gate-subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gate-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Passcode Form */
.passcode-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.passcode-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.passcode-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1.125rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-color);
    transition: var(--transition);
    text-align: center;
    letter-spacing: 2px;
}

.passcode-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.passcode-input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.6);
    border-color: #e5b685;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

/* Visibility Toggle */
.visibility-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.visibility-toggle:hover {
    opacity: 1;
}

.eye-icon {
    font-size: 1.25rem;
    filter: grayscale(100%);
}

.visibility-toggle.visible .eye-icon {
    filter: grayscale(0%);
}

/* Submit Button - inherits from main.css */
.passcode-form .submit-btn {
    width: 100%;
    max-width: 300px;
    margin-top: 0.5rem;
}

/* Feedback Container */
.feedback-container {
    margin-top: 1.5rem;
    min-height: 50px;
}

.feedback-container .feedback {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.feedback-container .feedback.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ff6b6b;
}

.feedback-container .feedback.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #90ee90;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
}

.welcome-section .subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.welcome-section .intro-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Hidden State */
.hidden {
    display: none !important;
}

/* Lock Icon Animation */
@keyframes unlockPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.unlock-animation {
    animation: unlockPulse 0.5s ease-out;
}

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

.shake {
    animation: shake 0.5s ease-out;
}

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

.loading .submit-btn {
    position: relative;
}

.loading .submit-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .gate-subtitle {
        font-size: 1.25rem;
    }

    .gate-description {
        font-size: 0.9rem;
    }

    .passcode-input {
        font-size: 1rem;
        padding: 0.875rem 2.5rem 0.875rem 1rem;
    }

    .passcode-form .submit-btn {
        padding: 0.875rem 2rem;
    }
}
