@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&family=Oxanium:wght@400;500;600;700;800&display=swap');

:root {
    --chile-red: #D52B1E;
    --chile-blue: #0039A6;
    --rock-gold: #FFD700;
    --dark-bg: #0a0a0a;
}

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

body {
    font-family: 'Oxanium', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background: var(--dark-bg);
    color: white;
}

/* Background */
.welcome-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(213, 43, 30, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 57, 166, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #0a0520 50%, #000000 100%);
    z-index: 1;
}

/* Main Container */
.welcome-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* Logo */
.logo-wrapper {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.main-logo {
    max-width: 400px;
    width: 80vw;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.8));
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Card */
.login-card {
    background: rgba(10, 10, 10, 0.85);
    border: 2px solid var(--rock-gold);
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    animation: fadeInUp 1.2s ease-out;
    backdrop-filter: blur(10px);
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--chile-red), var(--rock-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.login-header h2 {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg,
            var(--chile-red) 0%,
            var(--rock-gold) 50%,
            var(--chile-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Error Message */
.error-message {
    background: rgba(213, 43, 30, 0.2);
    border: 1px solid var(--chile-red);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: shake 0.5s ease-in-out;
}

.error-message i {
    color: var(--chile-red);
    font-size: 1.2rem;
}

.error-message span {
    color: #fff;
    font-size: 0.95rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rock-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label i {
    font-size: 1rem;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    border-color: var(--rock-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.form-group input:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

/* Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg,
            var(--chile-red) 0%,
            var(--chile-blue) 100%);
    border: 3px solid var(--rock-gold);
    color: white;
    font-family: 'Oxanium', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
    border-color: white;
}

.btn-login:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login i:last-child {
    transition: transform 0.3s ease;
}

.btn-login:hover:not(:disabled) i:last-child {
    transform: translateX(5px);
}

/* Login Links */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.login-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.link-secondary {
    color: rgba(255, 255, 255, 0.7);
}

.link-secondary:hover {
    color: var(--rock-gold);
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.link-primary {
    color: var(--rock-gold);
    font-weight: 600;
}

.link-primary:hover {
    color: white;
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.login-links a i {
    font-size: 1rem;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: var(--rock-gold);
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.btn-back:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--rock-gold);
    color: white;
    transform: translateX(-5px);
}

.btn-back i {
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer */
.welcome-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: blink 2s ease-in-out infinite;
}

.welcome-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.4;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-logo {
        max-width: 300px;
    }

    .login-card {
        padding: 2rem;
        max-width: 400px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .btn-login {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 250px;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-header i {
        font-size: 2.5rem;
    }

    .login-header h2 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .btn-login {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }

    .form-group input {
        padding: 0.8rem 1rem;
    }

    .welcome-footer p {
        font-size: 0.8rem;
    }
}