* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Inter", "Inter Fallback", sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 380px;
    padding: 50px 20px 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}


.logo {
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    padding: 16px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    background-color: transparent;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: white;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-group input::placeholder {
    color: #888;
}

.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    margin-top: 20px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forgot-link {
    margin-top: 30px;
}

.forgot-link a {
    color: #facc15;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.forgot-link a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.message {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Texto de redirección a inicio de sesión */
.login-redirect {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.login-redirect a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}

.login-redirect a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 15px 20px 15px;
        max-width: 350px;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
        padding: 16px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .form {
        gap: 20px;
    }

    .input-group input {
        padding: 16px 20px;
        font-size: 14px;
    }

    .register-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
}
